fix coverity #910036
This commit is contained in:
1 parent
b5abc8b335
commit
fc773ea230
1 file changed
-4
@@ -363,10 +363,6 @@ int sam_get_serial_number(void) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
uint8_t *sam_serial_an = sam_response_an + 2;
|
uint8_t *sam_serial_an = sam_response_an + 2;
|
||||||
if (sam_serial_an == NULL) {
|
|
||||||
if (g_dbglevel >= DBG_ERROR) DbpString(_RED_("SAM get serial number failed"));
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
Dbprintf(_YELLOW_("Serial Number: "));
|
Dbprintf(_YELLOW_("Serial Number: "));
|
||||||
Dbhexdump(sam_response_an[1], sam_serial_an, false);
|
Dbhexdump(sam_response_an[1], sam_serial_an, false);
|
||||||
|
|||||||
Reference in new issue
Block a user