mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
socrates: Fix a misleading indentation warning
With gcc-6 and later we see a warning about the fact that we have a construct of "if (test);\n\tstatement". Upon reviewing the code, the intention here is as the compiler suggests, we only want to execute the indented statement if the test was true. Cc: Sergei Poselenov <sposelenov@emcraft.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
c33e825ac3
commit
1f7efe82bd
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ static void board_backlight_brightness(int br)
|
|||
|
||||
/* LEDs on */
|
||||
reg = in_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c));
|
||||
if (!(reg & BACKLIGHT_ENABLE));
|
||||
if (!(reg & BACKLIGHT_ENABLE))
|
||||
out_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c),
|
||||
reg | BACKLIGHT_ENABLE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue