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)
commitf9027f88f7d1dc2b0ed1afbf28f22992d72d7efe
tree73addd25f04d6f84e177e2cc37122c1f291706bf
parent668205b9c9f94d5ed6ab00cce9a46a654c2b5d16
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