From: Ashok Raj <ashok.raj@intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Jithu Joseph <jithu.joseph@intel.com>,
Tony Luck <tony.luck@intel.com>,
Hans de Goede <hdegoede@redhat.com>,
<platform-driver-x86@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Ashok Raj <ashok.raj@intel.com>
Subject: Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
Date: Thu, 25 Jan 2024 07:21:38 -0800 [thread overview]
Message-ID: <ZbJ8gp47CWDDqCb4@a4bf019067fa.jf.intel.com> (raw)
In-Reply-To: <20240125130328.11253-1-ilpo.jarvinen@linux.intel.com>
Hi Ilpo
thanks for looking into it.
On Thu, Jan 25, 2024 at 03:03:28PM +0200, Ilpo Järvinen wrote:
> ret variable is assigned unconditionally in ifs_load_firmware(), thus
> remove the unnecessary initialization of it.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> ---
> drivers/platform/x86/intel/ifs/load.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/intel/ifs/load.c b/drivers/platform/x86/intel/ifs/load.c
> index a1ee1a74fc3c..03e49b836a6b 100644
> --- a/drivers/platform/x86/intel/ifs/load.c
> +++ b/drivers/platform/x86/intel/ifs/load.c
> @@ -383,7 +383,7 @@ int ifs_load_firmware(struct device *dev)
> unsigned int expected_size;
> const struct firmware *fw;
> char scan_path[64];
> - int ret = -EINVAL;
> + int ret;
>
Looks reasonable to me.
I can keep this as a separate cleanup patch, or merge the change in this
patch.
What ever Hans/You prefer.
Cheers,
Ashok
next prev parent reply other threads:[~2024-01-25 15:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 13:03 [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init Ilpo Järvinen
2024-01-25 15:21 ` Ashok Raj [this message]
2024-01-25 16:12 ` Ilpo Järvinen
2024-01-25 16:26 ` Ashok Raj
2024-01-31 10:28 ` Ilpo Järvinen
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=ZbJ8gp47CWDDqCb4@a4bf019067fa.jf.intel.com \
--to=ashok.raj@intel.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jithu.joseph@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tony.luck@intel.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