[PATCH] staging: wilc1000: remove unwanted assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From : Hari Prasath Gujulan Elango

remove unwanted assignment to ih->check here as it will be
overwritten.Its not used in the ip_fast_csum() function as well.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@xxxxxxxxxxx>
---
 drivers/staging/wilc1000/wilc_wfi_netdevice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.c b/drivers/staging/wilc1000/wilc_wfi_netdevice.c
index fbc4b85..3c26cea 100644
--- a/drivers/staging/wilc1000/wilc_wfi_netdevice.c
+++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.c
@@ -547,7 +547,7 @@ void WILC_WFI_HwTx(char *buf, int len, struct net_device *dev)
 	((u8 *)saddr)[2] ^= 1;  /* change the third octet (class C) */
 	((u8 *)daddr)[2] ^= 1;
 
-	ih->check = 0;          /* and rebuild the checksum (ip needs it) */
+	/* and rebuild the checksum (ip needs it) */
 	ih->check = ip_fast_csum((unsigned char *)ih, ih->ihl);
 
 
-- 
1.9.1
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux