OSDN Git Service

x86/platform/UV: Remove redundant check of p == q
authorColin Ian King <colin.king@canonical.com>
Tue, 31 Jul 2018 09:09:38 +0000 (10:09 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 2 Aug 2018 12:25:41 +0000 (14:25 +0200)
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
arch/x86/platform/uv/tlb_uv.c

index ca446da..e26dfad 100644 (file)
@@ -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;
 }