summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-11-28 13:07:53 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2020-01-31 17:34:06 +0000
commita4f8a7fb1963bc02fbd40a0a28e128bb56d2fcc9 (patch)
tree9f82566308a8765e43901cf9e75acb09372aa62f
parentbbfceba15f8d1260c328a254efc2b3f2deae4904 (diff)
downloadlinux-a4f8a7fb1963bc02fbd40a0a28e128bb56d2fcc9.tar.bz2
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 <colin.king@canonical.com> Link: https://lore.kernel.org/r/20191128130753.181246-1-colin.king@canonical.com Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--kernel/debug/kdb/kdb_bp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_bp.c b/kernel/debug/kdb/kdb_bp.c
index 62c301ad0773..d7ebb2c79cb8 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 {