From: Leon Romanovsky <leon@kernel.org>
To: jgg@ziepe.ca, Yang Li <yang.lee@linux.alibaba.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH -next] RDMA/core: Remove NULL check before dev_{put, hold}
Date: Tue, 24 Oct 2023 18:16:34 +0300 [thread overview]
Message-ID: <169816059429.2308077.13679053435060636033.b4-ty@kernel.org> (raw)
In-Reply-To: <20231024003815.89742-1-yang.lee@linux.alibaba.com>
On Tue, 24 Oct 2023 08:38:15 +0800, Yang Li wrote:
> 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/nldev.c:375:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
>
>
> [...]
Applied, thanks!
[1/1] RDMA/core: Remove NULL check before dev_{put, hold}
https://git.kernel.org/rdma/rdma/c/7a1c2abf9a2be7
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2023-10-24 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 0:38 Yang Li
2023-10-24 15:16 ` Leon Romanovsky
2023-10-24 15:16 ` 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=169816059429.2308077.13679053435060636033.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=abaci@linux.alibaba.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=yang.lee@linux.alibaba.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®