net: devlink: remove redundant net_eq() check from sb_pool_get_dumpit()
The net_eq() check is already performed inside devlinks_xa_for_each_registered_get() helper, so remove the redundant appearance. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20220727055912.568391-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a683dc5c14
commit
2bb88b2c4f
|
@ -2642,8 +2642,7 @@ static int devlink_nl_cmd_sb_pool_get_dumpit(struct sk_buff *msg,
|
|||
|
||||
mutex_lock(&devlink_mutex);
|
||||
devlinks_xa_for_each_registered_get(sock_net(msg->sk), index, devlink) {
|
||||
if (!net_eq(devlink_net(devlink), sock_net(msg->sk)) ||
|
||||
!devlink->ops->sb_pool_get)
|
||||
if (!devlink->ops->sb_pool_get)
|
||||
goto retry;
|
||||
|
||||
devl_lock(devlink);
|
||||
|
|
Loading…
Reference in New Issue