Skip to content
Commit bbf0b423 authored by Rustam Subkhankulov's avatar Rustam Subkhankulov Committed by Saeed Mahameed
Browse files

net/mlx5e: Removed useless code in function



Comparison of eth_ft->ft with NULL is useless, because
get_flow_table() returns either pointer 'eth_ft'
such that eth_ft->ft != NULL, or an erroneous value that is
handled on return, causing mlx5e_ethtool_flow_replace()
to terminate before checking whether eth_ft->ft equals NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: default avatarRustam Subkhankulov <subkhankulov@ispras.ru>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 9c0ca9ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment