From: Leon Romanovsky <leon@kernel.org>
To: zhang.songyi@zte.com.cn
Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org,
zhangsongyi.cgel@gmail.com, yishaih@nvidia.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-next] RDMA/mlx4: remove NULL check before dev_{put, hold}
Date: Tue, 29 Nov 2022 11:21:55 +0200 [thread overview]
Message-ID: <166971371504.18968.8462013076488687681.b4-ty@kernel.org> (raw)
In-Reply-To: <202211291554079687539@zte.com.cn>
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>
prev parent reply other threads:[~2022-11-29 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 7:54 zhang.songyi
2022-11-29 9:21 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=166971371504.18968.8462013076488687681.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=yishaih@nvidia.com \
--cc=zhang.songyi@zte.com.cn \
--cc=zhangsongyi.cgel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®