diff options
| author | Yang Li <[email protected]> | 2023-02-22 10:29:44 +0800 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2023-02-24 10:13:18 -0800 |
| commit | 0483a16bc493075bb9f6483497786fed41d27b94 (patch) | |
| tree | ca14b6cb8d42aaac2cbd2d8b874f3880ef28697d /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | ac3ad19584b26fae9ac86e4faebe790becc74491 (diff) | |
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/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions