projects
/
openwrt
/
staging
/
blogic.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 5409fe876a441607488d43ac39829f7e5fc9e891..0b57085201211583e16f3f4d86f640d9536c1b09 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;