Skip to content

Commit

Permalink
net: ethernet: sun: initialize variables directly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emilio López authored and David S. Miller committed May 17, 2013
1 parent 345af95 commit bfd428d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/ethernet/sun/sunbmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bfd428d

Please sign in to comment.