]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Convert single case statement switch statements into if statements
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 10 Jul 2019 06:06:15 +0000 (23:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2019 18:37:03 +0000 (11:37 -0700)
commitc0025c5c9b2a427336a25bfcb122da65be5ef762
tree0e0834e601c41c1cf85bb3ba65ec1f94a64b78ce
parentcce2e94b01381cd8de37122dce48568ed66ccd01
net/mlx5e: Convert single case statement switch statements into if statements

During the review of commit 6b18c81cf71f ("net/mlx5e: Return in default
case statement in tx_post_resync_params"), Leon and Nick pointed out
that the switch statements can be converted to single if statements
that return early so that the code is easier to follow.

Suggested-by: Leon Romanovsky <leon@kernel.org>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c