summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-05-17 14:42:53 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-18 00:55:43 +0400
commitbfd428daaf619d671f6463bd8c7e4df8107e4775 (patch)
tree738c8e907f80b398b8eee839aa68bee848f3a04a /drivers/net/ethernet/sun
parent345af953b9764a9c66d50a046581d0acb21126df (diff)
downloadlinux-bfd428daaf619d671f6463bd8c7e4df8107e4775.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/sun')
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c5
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);