mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
board: iocon: Fix uninitialized access
Wolfgang Denk found this issue using cppcheck: (error) Uninitialized variable: fpga_features Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
8272baa964
commit
a8cb9d0b17
1 changed files with 2 additions and 1 deletions
|
@ -369,10 +369,11 @@ int last_stage_init(void)
|
|||
unsigned char mclink_controllers[] = { 0x24, 0x25, 0x26 };
|
||||
int legacy = get_fpga_state(0) & FPGA_STATE_PLATFORM;
|
||||
u16 fpga_features;
|
||||
int feature_carrier_speed = fpga_features & (1<<4);
|
||||
int feature_carrier_speed;
|
||||
bool ch0_rgmii2_present = false;
|
||||
|
||||
FPGA_GET_REG(0, fpga_features, &fpga_features);
|
||||
feature_carrier_speed = fpga_features & (1<<4);
|
||||
|
||||
if (!legacy) {
|
||||
/* Turn on Parade DP501 */
|
||||
|
|
Loading…
Reference in a new issue