Skip to content

Commit

Permalink
staging: hv: removed commented out code from rndis_filter_receive()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent bdbad57 commit e931a2b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions drivers/staging/hv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit e931a2b

Please sign in to comment.