]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: don't duplicate ndev_running
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 19 Jan 2017 16:58:25 +0000 (18:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 17:35:09 +0000 (12:35 -0500)
commitac3b4689642aa1512cc8713d66ec6454cf3bdefb
treefb4cc6c6427542d2cd0864e19287fd3032f54c38
parent86a60273ede96d48617f1db4b25163fe926e9bb1
net: ethernet: ti: cpsw: don't duplicate ndev_running

No need to create additional vars to identify if interface is running.
So simplify code by removing redundant var and checking usage counter
instead.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c