]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: don't disable interrupts in ndo_open
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 19 Jan 2017 16:58:24 +0000 (18:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 17:35:09 +0000 (12:35 -0500)
commit86a60273ede96d48617f1db4b25163fe926e9bb1
tree605b65d522132c033adee2b07fa3f18b2520f1e1
parentd1882d2585354a38455b2ced47a23ba090e72b83
net: ethernet: ti: cpsw: don't disable interrupts in ndo_open

No need to disable interrupts if no open devices,
they are disabled anyway.

Even no need to disable interrupts if some ndev is opened, In this
case shared resources are not touched, only parameters of ndev shell,
so no reason to disable them also. Removed lines have proved it.

So, no need in redundant check and interrupt disable.

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