History

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>

Colin Ian King committed 6 years ago

Commit a4f8a7f1 parent bbfceba1 file · +0 −1Browse files

Showing the changes to kernel/debug (1 of 1 file). Show all

Unified · Split

kernel/debug/kdb/kdb_bp.c+0−1
@@ -412,7 +412,6 @@ static int kdb_bc(int argc, const char **argv) · 411 unmodified lines
412 * assume that the breakpoint number is desired.412 * assume that the breakpoint number is desired.
413 */413 */
414 if (addr < KDB_MAXBPT) {414 if (addr < KDB_MAXBPT) {
415 bp = &kdb_breakpoints[addr];
416 lowbp = highbp = addr;415 lowbp = highbp = addr;
417 highbp++;416 highbp++;
418 } else {417 } else {