From: Leon Romanovsky <leon@kernel.org>
To: Jules Irenge <jbi.octave@gmail.com>
Cc: jgg@ziepe.ca, wenglianfa@huawei.com, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org, lishifeng@sangfor.com.cn,
gustavoars@kernel.org
Subject: Re: [PATCH v2] RDMA/core: Remove NULL check before dev_{put, hold}
Date: Sun, 05 May 2024 15:13:41 +0300 [thread overview]
Message-ID: <171491122159.97333.18239115209845838657.b4-ty@kernel.org> (raw)
In-Reply-To: <ZjF1Eedxwhn4JSkz@octinomon.home>
On Tue, 30 Apr 2024 23:47:45 +0100, Jules Irenge wrote:
> Coccinelle reports a warning
>
> WARNING: NULL check before dev_{put, hold} functions is not needed
>
> The reason is the call netdev_{put, hold} of dev_{put,hold} will check NULL
> There is no need to check before using dev_{put, hold}
>
> [...]
Applied, thanks!
[1/1] RDMA/core: Remove NULL check before dev_{put, hold}
https://git.kernel.org/rdma/rdma/c/48d80b484491f1
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2024-05-05 12:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 22:47 Jules Irenge
2024-05-02 6:28 ` Markus Elfring
2024-05-05 12:13 ` 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=171491122159.97333.18239115209845838657.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=gustavoars@kernel.org \
--cc=jbi.octave@gmail.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lishifeng@sangfor.com.cn \
--cc=wenglianfa@huawei.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®