]> 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)
commit6307168ce918e573e2c1aaf6509305ecd551ced7
tree605b65d522132c033adee2b07fa3f18b2520f1e1
parentea1ed6a7f4bd1c12cc0f8fe01711c457d28f3552
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