]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: unify code of the same family
authorJon Mason <jon.mason@broadcom.com>
Tue, 28 Feb 2017 18:51:00 +0000 (13:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2017 01:17:47 +0000 (17:17 -0800)
commit597c00de4412b4bf62843ab78b51e6501856eb0e
tree1c8cd0bc65444c329cc98533e3d9cabf8fb02bba
parent39b4d83452548762e399a1b25d0b86ad9cdf18c1
net: ethernet: bgmac: unify code of the same family

BCM471X and BCM535X are of the same family (from what I can derive from
internal documents).  Group them into the case statement together, which
results in more code reuse.

Also, use existing helper variables to make the code a little more
readable too.

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-bcma.c