Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d79d0248 authored by Colin Ian King's avatar Colin Ian King Committed by Thomas Gleixner
Browse files

x86/platform/UV: Remove redundant check of p == q



The check for p == q is dead code because the proceeding switch
statements jump to the end of the outer for-loop with continue
statements.  Remove the dead code.

Detected by CoverityScan, CID#145071 ("Structurally dead code")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: kernel-janitors@vger.kernel.org
Link: https://lkml.kernel.org/r/20180731090938.11856-1-colin.king@canonical.com
parent c7ba9f7c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
				*tunables[cnt].tunp = val;
			continue;
		}
		if (q == p)
			break;
	}
	return 0;
}