diff options
| author | Yang Li <[email protected]> | 2023-02-22 02:29:44 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2023-02-24 18:13:18 +0000 |
| commit | 0483a16bc493075bb9f6483497786fed41d27b94 (patch) | |
| tree | ca14b6cb8d42aaac2cbd2d8b874f3880ef28697d /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | net: fix __dev_kfree_skb_any() vs drop monitor (diff) | |
| download | kernel-0483a16bc493075bb9f6483497786fed41d27b94.tar.gz kernel-0483a16bc493075bb9f6483497786fed41d27b94.zip | |
net/mlx5: Remove NULL check before dev_{put, hold}
The call netdev_{put, hold} of dev_{put, hold} will check NULL,
so there is no need to check before using dev_{put, hold},
remove it to silence the warning:
./drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c:714:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
Reported-by: Abaci Robot <[email protected]>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4174
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
