staging: hv: removed commented out code from rndis_filter_receive()
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 23 May 2011 16:03:50 +0000 (09:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:36:02 +0000 (13:36 -0700)
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/rndis_filter.c

index b142aae3331db79c3ead5ec2f546b494ff0dd0c6..5a5bf64bb0611e1e4394182c0a068a3790159919 100644 (file)
@@ -372,24 +372,6 @@ int rndis_filter_receive(struct hv_device *dev,
                        pkt->page_buf[0].offset);
 
        /* Make sure we got a valid rndis message */
-       /*
-        * FIXME: There seems to be a bug in set completion msg where its
-        * MessageLength is 16 bytes but the ByteCount field in the xfer page
-        * range shows 52 bytes
-        * */
-#if 0
-       if (pkt->total_data_buflen != rndis_hdr->msg_len) {
-               kunmap_atomic(rndis_hdr - pkt->page_buf[0].offset,
-                             KM_IRQ0);
-
-               dev_err(&dev->device, "invalid rndis message? (expected %u "
-                          "bytes got %u)...dropping this message!\n",
-                          rndis_hdr->msg_len,
-                          pkt->total_data_buflen);
-               return -1;
-       }
-#endif
-
        if ((rndis_hdr->ndis_msg_type != REMOTE_NDIS_PACKET_MSG) &&
            (rndis_hdr->msg_len > sizeof(struct rndis_message))) {
                dev_err(&dev->device, "incoming rndis message buffer overflow "