]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: mlx5_tc_ct_init does not fail
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Feb 2021 21:42:22 +0000 (13:42 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:14 +0000 (14:35 -0800)
commite622dc05f7713184c6c7e246aefb1c7ed948279a
treee677a2fbaca5829bb79344c88fc3f38e2014584a
parent2c7a3a7cfaa66dc510470e182f975c398aeff333
net/mlx5e: mlx5_tc_ct_init does not fail

mlx5_tc_ct_init() either returns a valid pointer or a NULL, either way
the caller can continue, remove IS_ERR check from callers as it has no
effect.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c