projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e729a
)
net: ethernet: korina: initialize variables directly
author
Emilio López
<emilio@elopez.com.ar>
Fri, 17 May 2013 10:42:56 +0000
(10:42 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 17 May 2013 20:55:44 +0000
(13:55 -0700)
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>
drivers/net/ethernet/korina.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/korina.c
b/drivers/net/ethernet/korina.c
index
5409fe8
..
0b57085
100644
(file)
--- a/
drivers/net/ethernet/korina.c
+++ b/
drivers/net/ethernet/korina.c
@@
-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;