]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: iosm: Remove unnecessary if_mutex lock
authorZhaoping Shu <zhaoping.shu@mediatek.com>
Thu, 3 Nov 2022 11:08:49 +0000 (19:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 09:38:04 +0000 (09:38 +0000)
commitdabcbed935e85ae4b7686cc1b73676c2e41317e7
tree73addd25f04d6f84e177e2cc37122c1f291706bf
parent0e9060a7371f87aef7d5255bc6f66738a170361a
net: wwan: iosm: Remove unnecessary if_mutex lock

These WWAN network interface operations (create/delete/open/close)
are already protected by RTNL lock, i.e., wwan_ops.newlink(),
wwan_ops.dellink(), net_device_ops.ndo_open() and
net_device.ndo_stop() are called with RTNL lock held.
Therefore, this patch removes the unnecessary if_mutex.

Signed-off-by: Zhaoping Shu <zhaoping.shu@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_wwan.c