Linux-RDMA Archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Jules Irenge <jbi.octave@gmail.com>
Cc: jgg@ziepe.ca, linux-kernel@vger.kernel.org,
	linux-rdma@vger.kernel.org,  lishifeng@sangfor.com.cn,
	gustavoars@kernel.org
Subject: Re: [PATCH] RDMA/ipoib: Remove NULL check before dev_{put, hold}
Date: Thu, 02 May 2024 17:46:59 +0300	[thread overview]
Message-ID: <171466121936.1638184.643798566433434250.b4-ty@kernel.org> (raw)
In-Reply-To: <ZjGDFatHRMI6Eg7M@octinomon.home>


On Wed, 01 May 2024 00:47:33 +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/ipoib: Remove NULL check before dev_{put, hold}
      https://git.kernel.org/rdma/rdma/c/e4e40a87024c50

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


      reply	other threads:[~2024-05-02 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 23:47 [PATCH] RDMA/ipoib: Remove NULL check before dev_{put, hold} Jules Irenge
2024-05-02 14:46 ` 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=171466121936.1638184.643798566433434250.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 \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).