]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ixp4xx: Use distinct local variable
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 12 Jan 2020 12:04:47 +0000 (13:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Jan 2020 20:59:53 +0000 (12:59 -0800)
commit91f122628d84948e00f0a2e134e7de5208df4a06
treeb9af0ebb15841dad988d1a2f5adc9886b47e3133
parente53f330d8e0603a6f1b8c5fd9d356806781e1e1b
net: ethernet: ixp4xx: Use distinct local variable

Use "ndev" for the struct net_device and "dev" for the
struct device in probe() and remove(). Add the local
"dev" pointer for later use in refactoring.

Take this opportunity to fix inverse christmas tree
coding style.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xscale/ixp4xx_eth.c