Commit 45e44314 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

staging: hv: remove ASSERT()s in RndisFilter.c

These ASSERT()s serve no purpose other than for debugging.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e2e64432
...@@ -356,8 +356,8 @@ static void RndisFilterReceiveData(struct rndis_device *Device, ...@@ -356,8 +356,8 @@ static void RndisFilterReceiveData(struct rndis_device *Device,
DPRINT_ENTER(NETVSC); DPRINT_ENTER(NETVSC);
/* empty ethernet frame ?? */ /* empty ethernet frame ?? */
ASSERT(Packet->PageBuffers[0].Length > /* ASSERT(Packet->PageBuffers[0].Length > */
RNDIS_MESSAGE_SIZE(struct rndis_packet)); /* RNDIS_MESSAGE_SIZE(struct rndis_packet)); */
rndisPacket = &Message->Message.Packet; rndisPacket = &Message->Message.Packet;
...@@ -567,8 +567,8 @@ static int RndisFilterSetPacketFilter(struct rndis_device *Device, ...@@ -567,8 +567,8 @@ static int RndisFilterSetPacketFilter(struct rndis_device *Device,
DPRINT_ENTER(NETVSC); DPRINT_ENTER(NETVSC);
ASSERT(RNDIS_MESSAGE_SIZE(struct rndis_set_request) + sizeof(u32) <= /* ASSERT(RNDIS_MESSAGE_SIZE(struct rndis_set_request) + sizeof(u32) <= */
sizeof(struct rndis_message)); /* sizeof(struct rndis_message)); */
request = GetRndisRequest(Device, REMOTE_NDIS_SET_MSG, request = GetRndisRequest(Device, REMOTE_NDIS_SET_MSG,
RNDIS_MESSAGE_SIZE(struct rndis_set_request) + RNDIS_MESSAGE_SIZE(struct rndis_set_request) +
...@@ -640,8 +640,8 @@ int RndisFilterInit(struct netvsc_driver *Driver) ...@@ -640,8 +640,8 @@ int RndisFilterInit(struct netvsc_driver *Driver)
Driver->Base.OnDeviceRemove; Driver->Base.OnDeviceRemove;
gRndisFilter.InnerDriver.Base.OnCleanup = Driver->Base.OnCleanup; gRndisFilter.InnerDriver.Base.OnCleanup = Driver->Base.OnCleanup;
ASSERT(Driver->OnSend); /* ASSERT(Driver->OnSend); */
ASSERT(Driver->OnReceiveCallback); /* ASSERT(Driver->OnReceiveCallback); */
gRndisFilter.InnerDriver.OnSend = Driver->OnSend; gRndisFilter.InnerDriver.OnSend = Driver->OnSend;
gRndisFilter.InnerDriver.OnReceiveCallback = Driver->OnReceiveCallback; gRndisFilter.InnerDriver.OnReceiveCallback = Driver->OnReceiveCallback;
gRndisFilter.InnerDriver.OnLinkStatusChanged = gRndisFilter.InnerDriver.OnLinkStatusChanged =
...@@ -811,8 +811,8 @@ static int RndisFilterOnDeviceAdd(struct hv_device *Device, ...@@ -811,8 +811,8 @@ static int RndisFilterOnDeviceAdd(struct hv_device *Device,
/* Initialize the rndis device */ /* Initialize the rndis device */
netDevice = Device->Extension; netDevice = Device->Extension;
ASSERT(netDevice); /* ASSERT(netDevice); */
ASSERT(netDevice->Device); /* ASSERT(netDevice->Device); */
netDevice->Extension = rndisDevice; netDevice->Extension = rndisDevice;
rndisDevice->NetDevice = netDevice; rndisDevice->NetDevice = netDevice;
...@@ -921,7 +921,7 @@ static int RndisFilterOnSend(struct hv_device *Device, ...@@ -921,7 +921,7 @@ static int RndisFilterOnSend(struct hv_device *Device,
/* Add the rndis header */ /* Add the rndis header */
filterPacket = (struct rndis_filter_packet *)Packet->Extension; filterPacket = (struct rndis_filter_packet *)Packet->Extension;
ASSERT(filterPacket); /* ASSERT(filterPacket); */
memset(filterPacket, 0, sizeof(struct rndis_filter_packet)); memset(filterPacket, 0, sizeof(struct rndis_filter_packet));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment