From: Fenghua Yu <fenghua.yu@intel.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Dave Jiang <dave.jiang@intel.com>, Vinod Koul <vkoul@kernel.org>,
<dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH] dmaengine: idxd: Delete unnecessary NULL check
Date: Fri, 17 Jan 2025 16:17:28 -0800 [thread overview]
Message-ID: <bad17290-10bf-f162-c49a-4822335bb9a7@intel.com> (raw)
In-Reply-To: <ec38214e-0bbb-4c5a-94ff-b2b2d4c3f245@stanley.mountain>
On 1/8/25 01:13, Dan Carpenter wrote:
> The "saved_evl" pointer is a offset into the middle of a non-NULL struct.
> It can't be NULL and the check is slightly confusing. Delete the check.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
> ---
> drivers/dma/idxd/init.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c
> index b946f78f85e1..fca1d2924999 100644
> --- a/drivers/dma/idxd/init.c
> +++ b/drivers/dma/idxd/init.c
> @@ -912,8 +912,7 @@ static void idxd_device_config_restore(struct idxd_device *idxd,
>
> idxd->rdbuf_limit = idxd_saved->saved_idxd.rdbuf_limit;
>
> - if (saved_evl)
> - idxd->evl->size = saved_evl->size;
> + idxd->evl->size = saved_evl->size;
>
> for (i = 0; i < idxd->max_groups; i++) {
> struct idxd_group *saved_group, *group;
Thanks.
-Fenghua
next prev parent reply other threads:[~2025-01-18 0:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 9:13 Dan Carpenter
2025-01-18 0:17 ` Fenghua Yu [this message]
2025-02-10 14:35 ` Vinod Koul
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=bad17290-10bf-f162-c49a-4822335bb9a7@intel.com \
--to=fenghua.yu@intel.com \
--cc=dan.carpenter@linaro.org \
--cc=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
/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®