]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: tsec: Fix and cleanup tsec_mcast_addr()
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Mon, 30 Sep 2013 09:44:40 +0000 (12:44 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 22 Nov 2013 22:57:47 +0000 (16:57 -0600)
commit876d4515e38dfcec4346968caf6a0c9c8176ea0b
tree1b1d9b6b69632428ec6012bc6a0fc03a03c1d7a6
parent9c4cffacec7b76299e74cb09e074a21fb6609dbe
net: tsec: Fix and cleanup tsec_mcast_addr()

There are several implementation issues for tsec_mcast_addr()
addressed by this patch:
* unmanaged, not portable r/w access to registers; fixed with
setbits_be32()/ clrbits_be32()
* use of volatile pointers
* unnecessary forced cast to u8 for the ether_crc() result
* removed redundant parens
* corrected some comment slips

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Patch: 279000
drivers/net/tsec.c