summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2023-12-08 16:25:23 -0800
committerVineet Gupta <vgupta@kernel.org>2023-12-08 16:30:24 -0800
commit4eb69d00fe967699b9d93f7e74a990fe813e8d2b (patch)
tree351340fd289fab585d4349eecd08b7ae5e3d7ea6 /arch/arc
parentaca02d933f63ba8bc84258bf35f9ffaf6b664336 (diff)
downloadlinux-stable-4eb69d00fe967699b9d93f7e74a990fe813e8d2b.tar.gz
linux-stable-4eb69d00fe967699b9d93f7e74a990fe813e8d2b.tar.bz2
linux-stable-4eb69d00fe967699b9d93f7e74a990fe813e8d2b.zip
ARC: fix smatch warning
Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/r/202311280906.VAIwEAfT-lkp@intel.com/ Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index 4dcf8589b708..d08a5092c2b4 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -153,7 +153,7 @@ static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)
{
int n = 0;
#ifdef CONFIG_ISA_ARCV2
- const char *release, *cpu_nm, *isa_nm = "ARCv2";
+ const char *release = "", *cpu_nm = "HS38", *isa_nm = "ARCv2";
int dual_issue = 0, dual_enb = 0, mpy_opt, present;
int bpu_full, bpu_cache, bpu_pred, bpu_ret_stk;
char mpy_nm[16], lpb_nm[32];
@@ -172,8 +172,6 @@ static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)
* releases only update it.
*/
- cpu_nm = "HS38";
-
if (info->arcver > 0x50 && info->arcver <= 0x53) {
release = arc_hs_rel[info->arcver - 0x51].str;
} else {