]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: Neaten mv643xx_eth_program_multicast_filter
authorJoe Perches <joe@perches.com>
Thu, 10 Sep 2015 00:40:56 +0000 (17:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 19:49:11 +0000 (12:49 -0700)
commitb020cc009f09b8bac89b94757669dcab89714ffb
treeecc9bb2d084a7048f3fd3374c931acc1066e44a4
parenta9bce8acd5c2dfe3498c29a2c457943ce2f5d9a1
mv643xx_eth: Neaten mv643xx_eth_program_multicast_filter

The code around the allocation and loops are a bit obfuscated.

Neaten it by using:

o kcalloc with decimal count and sizeof(u32)
o Decimal loop indexing and i++ not i += 4
o A promiscuous block using a similar style
  to the multicast block
o Remove unnecessary variables

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c