Commit be39b27
Hangbin Liu
team: Remove NULL check before dev_{put, hold}
JIRA: https://issues.redhat.com/browse/RHEL-31052
Upstream Status: net.git commit 64a3727
commit 64a3727
Author: Yang Li <yang.lee@linux.alibaba.com>
Date: Thu Jul 27 08:57:41 2023 +0800
team: 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/team/team.c:2325:3-10: WARNING: NULL check before dev_{put, hold} functions is not needed.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5991
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Hangbin Liu <haliu@redhat.com>1 parent b3dc398 commit be39b27
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2331 | 2331 | | |
2332 | 2332 | | |
2333 | 2333 | | |
2334 | | - | |
2335 | | - | |
| 2334 | + | |
2336 | 2335 | | |
2337 | 2336 | | |
2338 | 2337 | | |
| |||
0 commit comments