From: Colin Ian King Date: Thu, 28 Nov 2019 13:07:53 +0000 (+0000) Subject: kdb: remove redundant assignment to pointer bp X-Git-Tag: v5.6-rc1~79^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4f8a7fb1963bc02fbd40a0a28e128bb56d2fcc9;p=thirdparty%2Fkernel%2Flinux.git kdb: remove redundant assignment to pointer bp The point bp is assigned a value that is never read, it is being re-assigned later to bp = &kdb_breakpoints[lowbp] in a for-loop. Remove the redundant assignment. Addresses-Coverity ("Unused value") Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20191128130753.181246-1-colin.king@canonical.com Signed-off-by: Daniel Thompson --- diff --git a/kernel/debug/kdb/kdb_bp.c b/kernel/debug/kdb/kdb_bp.c index 62c301ad07735..d7ebb2c79cb86 100644 --- a/kernel/debug/kdb/kdb_bp.c +++ b/kernel/debug/kdb/kdb_bp.c @@ -412,7 +412,6 @@ static int kdb_bc(int argc, const char **argv) * assume that the breakpoint number is desired. */ if (addr < KDB_MAXBPT) { - bp = &kdb_breakpoints[addr]; lowbp = highbp = addr; highbp++; } else {