diff options
author | Cai Huoqing <[email protected]> | 2023-09-19 10:27:15 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-09-20 10:54:45 +0100 |
commit | 22b6e7f3d6d51ff2716480f3d8f3098d90d69165 (patch) | |
tree | a530c8e179956c0571b3b3330af42c98d46e091f /tools/perf/scripts/python/gecko.py | |
parent | 4e4b1798cc90e376b8b61d0098b4093898a32227 (diff) |
net: hinic: Fix warning-hinic_set_vlan_fliter() warn: variable dereferenced before check 'hwdev'
'hwdev' is checked too late and hwdev will not be NULL, so remove the check
Fixes: 2acf960e3be6 ("net: hinic: Add support for configuration of rx-vlan-filter by ethtool")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Cai Huoqing <[email protected]>
Reviewed-by: Vadim Fedorenko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions