mlxsw: spectrum: Remove unnecessary RCU read-side critical section
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:37 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:44 +0000 (15:00 -0700)
commite1f78ecdfd59d560c42bc04b9bfb746ef8a9dfb1
treee8f7027f75db867c46fd19a7b4723f645d99135e
parent5ab6dc9fa2720cbbbdf2686c06a90c9a6c86b6fd
mlxsw: spectrum: Remove unnecessary RCU read-side critical section

Since commit 7d8e8f3433dc ("mlxsw: core: Increase scope of RCU read-side
critical section"), all Rx handlers are called from an RCU read-side
critical section.

Remove the unnecessary rcu_read_lock() / rcu_read_unlock().

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c