Skip to content

Commit a4f8a7f

Browse files
Colin Ian KingDaniel Thompson
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Thompson <[email protected]>
1 parent bbfceba commit a4f8a7f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/debug/kdb/kdb_bp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ static int kdb_bc(int argc, const char **argv)
412412
* assume that the breakpoint number is desired.
413413
*/
414414
if (addr < KDB_MAXBPT) {
415-
bp = &kdb_breakpoints[addr];
416415
lowbp = highbp = addr;
417416
highbp++;
418417
} else {

0 commit comments

Comments
 (0)