diff options
author | Emilio López <emilio@elopez.com.ar> | 2013-05-17 12:42:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-17 22:55:43 +0200 |
commit | bfd428daaf619d671f6463bd8c7e4df8107e4775 (patch) | |
tree | 738c8e907f80b398b8eee839aa68bee848f3a04a | |
parent | Merge branch 'for-davem' of git://gitorious.org/linux-can/linux-can-next (diff) | |
download | linux-bfd428daaf619d671f6463bd8c7e4df8107e4775.tar.xz linux-bfd428daaf619d671f6463bd8c7e4df8107e4775.zip |
net: ethernet: sun: initialize variables directly
Clean up the code a bit to initialize the variables directly when
defining them.
Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sun/sunbmac.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c index 054975939a18..09b4f8c0b199 100644 --- a/drivers/net/ethernet/sun/sunbmac.c +++ b/drivers/net/ethernet/sun/sunbmac.c @@ -1017,10 +1017,7 @@ static void bigmac_set_multicast(struct net_device *dev) tmp |= BIGMAC_RXCFG_PMISC; sbus_writel(tmp, bregs + BMAC_RXCFG); } else { - u16 hash_table[4]; - - for (i = 0; i < 4; i++) - hash_table[i] = 0; + u16 hash_table[4] = { 0 }; netdev_for_each_mc_addr(ha, dev) { crc = ether_crc_le(6, ha->addr); |