summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-05-30 14:40:42 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-07-02 11:58:25 -0700
commit8e755f7a8cef6c3b64c5bdac2c8a3d6efb9f916c (patch)
treebae51fda68ab24d0c50e9442746dc78704ff340b /net/lapb/lapb_subr.c
parent9de64ae8160df782de011dc6f1ddb63cdafbb939 (diff)
net/mlx5: delete dead code in mlx5_esw_unlock()
Smatch complains about this function: drivers/net/ethernet/mellanox/mlx5/core/eswitch.c:2000 mlx5_esw_unlock() warn: inconsistent returns '&esw->mode_lock'. Before commit ec2fa47d7b98 ("net/mlx5: Lag, use lag lock") there used to be a matching mlx5_esw_lock() function and the lock and unlock functions were symmetric. But now we take the lock unconditionally and must unlock unconditionally as well. As near as I can tell this is dead code and can just be deleted. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions