Yang Li 6735041fd8 RDMA/cma: 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/cma.c:4812:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.

Link: https://lore.kernel.org/r/20230614014328.14007-1-yang.lee@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5521
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-06-20 12:50:36 -03:00
..
2021-04-12 14:52:22 -03:00
2022-12-10 11:01:12 -05:00
2022-12-10 11:01:12 -05:00
2022-12-16 03:54:54 -08:00
2021-04-12 14:56:48 -03:00
2022-12-09 15:52:17 -04:00
2022-07-26 07:28:07 -04:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2020-07-06 14:54:46 -03:00
2022-10-06 19:48:45 -03:00
2022-11-30 15:58:58 -08:00
2023-04-29 17:21:24 -07:00