flash/at91sam4: fix clang static analyzer warning
Change-Id: I5e5319d855c868adfa012f68086f7f809ec5a069 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4639 Tested-by: jenkins
This commit is contained in:
parent
d78cf6f312
commit
6ec5fe8269
|
@ -3131,7 +3131,8 @@ showall:
|
||||||
}
|
}
|
||||||
if ((who >= 0) && (((unsigned)(who)) < pChip->details.n_gpnvms)) {
|
if ((who >= 0) && (((unsigned)(who)) < pChip->details.n_gpnvms)) {
|
||||||
r = FLASHD_GetGPNVM(&(pChip->details.bank[0]), who, &v);
|
r = FLASHD_GetGPNVM(&(pChip->details.bank[0]), who, &v);
|
||||||
command_print(CMD_CTX, "sam4-gpnvm%u: %u", who, v);
|
if (r == ERROR_OK)
|
||||||
|
command_print(CMD_CTX, "sam4-gpnvm%u: %u", who, v);
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
command_print(CMD_CTX, "sam4-gpnvm invalid GPNVM: %u", who);
|
command_print(CMD_CTX, "sam4-gpnvm invalid GPNVM: %u", who);
|
||||||
|
|
Loading…
Reference in New Issue