net/mlx5e: kTLS, Cleanup redundant capability check
authorTariq Toukan <tariqt@mellanox.com>
Mon, 22 Jun 2020 15:32:36 +0000 (18:32 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 27 Jun 2020 21:00:25 +0000 (14:00 -0700)
commited9a7c53b8781f851bd8406551d6abfb2d826683
tree60f4e76483b805b4f2d8270356daf720ff55a79f
parentc5607360ec4ea5d0c955de501b9eeb04fa2465d0
net/mlx5e: kTLS, Cleanup redundant capability check

All callers of mlx5e_ktls_build_netdev() check capability
before the call.
Remove the repeated check in the function.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c