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)
commit8b711d6db5c78a6d1969fb0fccb93daa7df53762
treeecc9bb2d084a7048f3fd3374c931acc1066e44a4
parent29feb66a9afbe69d3aeb2550f2e0ea20d4782ead
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