]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 29 Jun 2021 13:17:23 +0000 (08:17 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 29 Jun 2021 13:17:23 +0000 (08:17 -0500)
commitf2e64b04ada6dde60f2c5984534ee561b40f03a9
tree6d30487097f04e1b41117c5481be28d0fc693858
parent87d9f8b77b5545016adf3cfc494e6ea6899acca7
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: https://github.com/KSPP/linux/issues/115
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c