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)
commit176b0cbffdf3f240a19386635811034dfe0fc8ab
tree605b65d522132c033adee2b07fa3f18b2520f1e1
parentaafc93a3b6b033a698b528b39fa99fae9fc5299f
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