Patchwork [net-next] atl1e:remove unnecessary crc inversion

login
register
mail settings
Submitter jie.yang@atheros.com
Date Nov. 14, 2008, 8:58 a.m.
Message ID <12266530874043-git-send-email-jie.yang@atheros.com>
Download mbox | patch
Permalink /patch/8731/
State Accepted
Delegated to: Jeff Garzik
Headers show

Comments

jie.yang@atheros.com - Nov. 14, 2008, 8:58 a.m.
From: Jie Yang <jie.yang@atheros.com>

remove unnecessary crc inversion.

Signed-off-by: Jie Yang <jie.yang @atheros.com>
---


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/atl1e/atl1e_hw.c b/drivers/net/atl1e/atl1e_hw.c
index 8cbc1b5..a2c93d1 100644
--- a/drivers/net/atl1e/atl1e_hw.c
+++ b/drivers/net/atl1e/atl1e_hw.c
@@ -174,7 +174,6 @@  u32 atl1e_hash_mc_addr(struct atl1e_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));