mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 04:34:36 +00:00
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>
This commit is contained in:
parent
bbfceba15f
commit
a4f8a7fb19
1 changed files with 0 additions and 1 deletions
|
@ -412,7 +412,6 @@ static int kdb_bc(int argc, const char **argv)
|
||||||
* assume that the breakpoint number is desired.
|
* assume that the breakpoint number is desired.
|
||||||
*/
|
*/
|
||||||
if (addr < KDB_MAXBPT) {
|
if (addr < KDB_MAXBPT) {
|
||||||
bp = &kdb_breakpoints[addr];
|
|
||||||
lowbp = highbp = addr;
|
lowbp = highbp = addr;
|
||||||
highbp++;
|
highbp++;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue