aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorYang Li <[email protected]>2023-10-24 08:38:15 +0800
committerLeon Romanovsky <[email protected]>2023-10-24 18:16:04 +0300
commit7a1c2abf9a2be7d969b25e8d65567933335ca88e (patch)
tree6c14c7286e8d5f8a4d937b913cf77fb271027fb3 /lib/test_fortify/write_overflow-strncpy-src.c
parentb55706366c5ed63749186f22bfb0a15a1de7c074 (diff)
RDMA/core: 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/infiniband/core/nldev.c:375:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7047 Signed-off-by: Yang Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions