* [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
@ 2024-01-25 13:03 Ilpo Järvinen
2024-01-25 15:21 ` Ashok Raj
2024-01-31 10:28 ` Ilpo Järvinen
0 siblings, 2 replies; 5+ messages in thread
From: Ilpo Järvinen @ 2024-01-25 13:03 UTC (permalink / raw)
To: Jithu Joseph, Ashok Raj, Tony Luck, Hans de Goede,
Ilpo Järvinen, platform-driver-x86, linux-kernel
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;
snprintf(scan_path, sizeof(scan_path), "intel/ifs_%d/%02x-%02x-%02x-%02x.scan",
test->test_num, boot_cpu_data.x86, boot_cpu_data.x86_model,
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
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
2024-01-25 16:12 ` Ilpo Järvinen
2024-01-31 10:28 ` Ilpo Järvinen
1 sibling, 1 reply; 5+ messages in thread
From: Ashok Raj @ 2024-01-25 15:21 UTC (permalink / raw)
To: Ilpo Järvinen
Cc: Jithu Joseph, Tony Luck, Hans de Goede, platform-driver-x86,
linux-kernel, Ashok Raj
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
2024-01-25 15:21 ` Ashok Raj
@ 2024-01-25 16:12 ` Ilpo Järvinen
2024-01-25 16:26 ` Ashok Raj
0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2024-01-25 16:12 UTC (permalink / raw)
To: Ashok Raj
Cc: Jithu Joseph, Tony Luck, Hans de Goede, platform-driver-x86, LKML
[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]
On Thu, 25 Jan 2024, Ashok Raj wrote:
> 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.
Hi,
I was thinking of merging it myself into pdx86 review-ilpo -> next after
allowing it sit on the queue a day or two. IMO, doesn't need to be more
complicated than the usual process kernel process with patches, it would
just take extra time from all the more there are middlemens handling the
patch (after all this is just a trivial cleanup which I noticed while
reviewing the patches you sent and since it didn't conflict the series,
I just sent the obvious cleanup).
But that's assuming you don't have anything conflicting beyond those
patches which you sent? If that's the case, it would be better for you to
take care of it so just let me and I won't merge it myself until it comes
back.
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
2024-01-25 16:12 ` Ilpo Järvinen
@ 2024-01-25 16:26 ` Ashok Raj
0 siblings, 0 replies; 5+ messages in thread
From: Ashok Raj @ 2024-01-25 16:26 UTC (permalink / raw)
To: Ilpo Järvinen
Cc: Jithu Joseph, Tony Luck, Hans de Goede, platform-driver-x86, LKML,
Ashok Raj
On Thu, Jan 25, 2024 at 06:12:00PM +0200, Ilpo Järvinen wrote:
> On Thu, 25 Jan 2024, Ashok Raj wrote:
>
[snip]
>
> Hi,
>
> I was thinking of merging it myself into pdx86 review-ilpo -> next after
> allowing it sit on the queue a day or two. IMO, doesn't need to be more
> complicated than the usual process kernel process with patches, it would
> just take extra time from all the more there are middlemens handling the
> patch (after all this is just a trivial cleanup which I noticed while
> reviewing the patches you sent and since it didn't conflict the series,
> I just sent the obvious cleanup).
>
> But that's assuming you don't have anything conflicting beyond those
> patches which you sent? If that's the case, it would be better for you to
> take care of it so just let me and I won't merge it myself until it comes
> back.
I don't have anything beyond this that conflicts with this change.
Feel free to add
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] platform/x86/intel/ifs: Remove unnecessary ret init
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
@ 2024-01-31 10:28 ` Ilpo Järvinen
1 sibling, 0 replies; 5+ messages in thread
From: Ilpo Järvinen @ 2024-01-31 10:28 UTC (permalink / raw)
To: Jithu Joseph, Ashok Raj, Tony Luck, Hans de Goede,
platform-driver-x86, linux-kernel, Ilpo Järvinen
On Thu, 25 Jan 2024 15:03:28 +0200, Ilpo Järvinen wrote:
> ret variable is assigned unconditionally in ifs_load_firmware(), thus
> remove the unnecessary initialization of it.
>
>
Thank you for your contribution, it has been applied to my local
review-ilpo branch. Note it will show up in the public
platform-drivers-x86/review-ilpo branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86/intel/ifs: Remove unnecessary ret init
commit: 682c259a849610c7864cc75d52415c782c78653a
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-31 10:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-01-25 16:12 ` Ilpo Järvinen
2024-01-25 16:26 ` Ashok Raj
2024-01-31 10:28 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox