Skip to content

Commit 6ca24c6

Browse files
net/mlx4: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Link: KSPP#115 Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
1 parent d07f6ca commit 6ca24c6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/mellanox/mlx4/resource_tracker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,7 @@ int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
26602660
case RES_XRCD:
26612661
err = xrcdn_free_res(dev, slave, vhcr->op_modifier, alop,
26622662
vhcr->in_param, &vhcr->out_param);
2663+
break;
26632664

26642665
default:
26652666
break;

0 commit comments

Comments
 (0)