Commit 129a9ec8 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Aichun Shi
Browse files

platform/x86/intel/ifs: Remove unnecessary initialization of 'ret'

mainline inclusion
from mainline-v6.9-rc1
commit 682c259a849610c7864cc75d52415c782c78653a
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/IASVRQ
CVE: N/A
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=682c259a849610c7864cc75d52415c782c78653a



-------------------------------------

The ret variable is unconditionally assigned in ifs_load_firmware().
Therefore, remove its unnecessary initialization.

Intel-SIG: commit 682c259a8496 platform/x86/intel/ifs: Remove unnecessary initialization of 'ret'
Backport to support IFS(In Field Scan) SBAF(Structural Based Functional Test at Field)

Reviewed-by: default avatarAshok Raj <ashok.raj@intel.com>
Link: https://lore.kernel.org/r/20240125130328.11253-1-ilpo.jarvinen@linux.intel.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ Aichun Shi: amend commit log ]
Signed-off-by: default avatarAichun Shi <aichun.shi@intel.com>
parent 8e2929c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,