]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitcb1b0f90acfedd2164e524b327d9e60b097646cc
tree1c8cd0bc65444c329cc98533e3d9cabf8fb02bba
parent02083c3aeda7b5fab49920b7fd9277b2c9ec50a9
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