]> 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)
commitfed5d0b5c3ae93d2e1c3bf511ab79264ef68c24c
treeb9af0ebb15841dad988d1a2f5adc9886b47e3133
parent409fe35b5effd7d75e481d914155b3ed8601793e
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