mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
arm: mvebu: avoid possible NULL dereference
It does not make sense to check if info is NULL after dereferencing it. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
a5981734a4
commit
a22bbfda6e
1 changed files with 5 additions and 5 deletions
|
|
@ -354,16 +354,16 @@ int serdes_phy_config(void)
|
|||
}
|
||||
|
||||
info = board_serdes_cfg_get(PEX_MODE_GET(satr11));
|
||||
DEBUG_INIT_FULL_S("info->line0_7= 0x");
|
||||
DEBUG_INIT_FULL_D(info->line0_7, 8);
|
||||
DEBUG_INIT_FULL_S(" info->line8_15= 0x");
|
||||
DEBUG_INIT_FULL_D(info->line8_15, 8);
|
||||
DEBUG_INIT_FULL_S("\n");
|
||||
|
||||
if (info == NULL) {
|
||||
DEBUG_INIT_S("Hight speed PHY Error #1\n");
|
||||
return MV_ERROR;
|
||||
}
|
||||
DEBUG_INIT_FULL_S("info->line0_7= 0x");
|
||||
DEBUG_INIT_FULL_D(info->line0_7, 8);
|
||||
DEBUG_INIT_FULL_S(" info->line8_15= 0x");
|
||||
DEBUG_INIT_FULL_D(info->line8_15, 8);
|
||||
DEBUG_INIT_FULL_S("\n");
|
||||
|
||||
if (config_module & ETM_MODULE_DETECT) { /* step 0.9 ETM */
|
||||
DEBUG_INIT_FULL_S("ETM module detect Step 0.9:\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue