Skip to contentSkip to conversation

atl1: remove unnecessary crc inversion

PATCH Applied Jay Cliburn 2 participants 2 messages Mar 28, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atl1: remove unnecessary crc inversion

From: Jay Cliburn <[email protected]>

The original vendor driver contained a private ether_crc_le() function that produced an inverted crc. When we changed to the kernel version of ether_crc_le(), we neglected to undo the inversion. Let's do it now. Discovered by and patch proffered by Jose Alberto Reguero.

---

 drivers/net/atl1/atl1_hw.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/atl1/atl1_hw.c +0 -1
index 314dbaa..69482e0 100644
@@ -334,7 +334,6 @@ u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr)
 	int i;
 
 	crc32 = ether_crc_le(6, mc_addr);
-	crc32 = ~crc32;
 	for (i = 0; i < 32; i++)
 		value |= (((crc32 >> i) & 1) << (31 - i));
 
Applied
#1 lore raw
Quoted 9 lines · Jay Cliburn

From: Jay Cliburn <[email protected]>

The original vendor driver contained a private ether_crc_le() function that produced an inverted crc. When we changed to the kernel version of ether_crc_le(), we neglected to undo the inversion. Let's do it now. Discovered by and patch proffered by Jose Alberto Reguero.

applied to #upstream-fixes