Skip to content

Commit

Permalink
net: ethernet: korina: 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 35e729a commit e998fd4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/ethernet/korina.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,9 @@ static void korina_multicast_list(struct net_device *dev)

/* Build the hash table */
if (netdev_mc_count(dev) > 4) {
u16 hash_table[4];
u16 hash_table[4] = { 0 };
u32 crc;

for (i = 0; i < 4; i++)
hash_table[i] = 0;

netdev_for_each_mc_addr(ha, dev) {
crc = ether_crc_le(6, ha->addr);
crc >>= 26;
Expand Down

0 comments on commit e998fd4

Please sign in to comment.