The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [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

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