summaryrefslogtreecommitdiffstats
path: root/arch/x86/platform/uv
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-31 10:09:38 +0100
committerThomas Gleixner <tglx@linutronix.de>2018-08-02 14:25:41 +0200
commitd79d024820f2e522ab30b5e6662c245f887c752b (patch)
tree5be126701cd198ce949d19bb9b6493f4bdc2fa1a /arch/x86/platform/uv
parentc7ba9f7cb55926605983187a68624999b93abb94 (diff)
downloadlinux-d79d024820f2e522ab30b5e6662c245f887c752b.tar.gz
linux-d79d024820f2e522ab30b5e6662c245f887c752b.tar.bz2
linux-d79d024820f2e522ab30b5e6662c245f887c752b.zip
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Thomas 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
Diffstat (limited to 'arch/x86/platform/uv')
-rw-r--r--arch/x86/platform/uv/tlb_uv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index ca446da48fd2..e26dfad507c8 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -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;
}