Messages in this thread | | | From | Leon Romanovsky <> | Subject | Re: [PATCH rdma-next] RDMA/mlx4: remove NULL check before dev_{put, hold} | Date | Tue, 29 Nov 2022 11:21:55 +0200 |
| |
On Tue, 29 Nov 2022 15:54:07 +0800 (CST), zhang.songyi@zte.com.cn wrote: > From: zhang songyi <zhang.songyi@zte.com.cn> > > The call netdev_{put, hold} of dev_{put, hold} will check NULL, > so there is no need to check before using dev_{put, hold}. > > Fix the following coccicheck warnings: > /drivers/infiniband/hw/mlx4/main.c:1311:2-10: WARNING: > WARNING NULL check before dev_{put, hold} functions is not needed. > > [...]
Applied, thanks!
[1/1] RDMA/mlx4: remove NULL check before dev_{put, hold} https://git.kernel.org/rdma/rdma/c/7ff54cf9f514c2
Best regards, -- Leon Romanovsky <leon@kernel.org>
| |