Skip to content

Commit 4eb69d0

Browse files
committed
ARC: fix smatch warning
Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Vineet Gupta <[email protected]>
1 parent aca02d9 commit 4eb69d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/arc/kernel/setup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static int arcv2_mumbojumbo(int c, struct cpuinfo_arc *info, char *buf, int len)
153153
{
154154
int n = 0;
155155
#ifdef CONFIG_ISA_ARCV2
156-
const char *release, *cpu_nm, *isa_nm = "ARCv2";
156+
const char *release = "", *cpu_nm = "HS38", *isa_nm = "ARCv2";
157157
int dual_issue = 0, dual_enb = 0, mpy_opt, present;
158158
int bpu_full, bpu_cache, bpu_pred, bpu_ret_stk;
159159
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)
172172
* releases only update it.
173173
*/
174174

175-
cpu_nm = "HS38";
176-
177175
if (info->arcver > 0x50 && info->arcver <= 0x53) {
178176
release = arc_hs_rel[info->arcver - 0x51].str;
179177
} else {

0 commit comments

Comments
 (0)