mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
board: gateworks: gw_ventana: fix building with GCC 12.2
Building with GCC 12.2 results in an error board/gateworks/gw_ventana/gw_ventana.c:636:68: error: the comparison will always evaluate as 'true' for the address of 'pwm_padmux' will never be NULL [-Werror=address] 636 | } else if (hwconfig_subarg_cmp(arg, "mode", "pwm") && | ^~ Remove the superfluous check. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-By: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
parent
9259bd1735
commit
65e8b64d23
1 changed files with 1 additions and 2 deletions
|
@ -633,8 +633,7 @@ void setup_board_gpio(int board, struct ventana_board_info *info)
|
||||||
ctrl);
|
ctrl);
|
||||||
gpio_requestf(cfg->gpio_param, "dio%d", i);
|
gpio_requestf(cfg->gpio_param, "dio%d", i);
|
||||||
gpio_direction_input(cfg->gpio_param);
|
gpio_direction_input(cfg->gpio_param);
|
||||||
} else if (hwconfig_subarg_cmp(arg, "mode", "pwm") &&
|
} else if (hwconfig_subarg_cmp(arg, "mode", "pwm")) {
|
||||||
cfg->pwm_padmux) {
|
|
||||||
if (!cfg->pwm_param) {
|
if (!cfg->pwm_param) {
|
||||||
printf("DIO%d: Error: pwm config invalid\n",
|
printf("DIO%d: Error: pwm config invalid\n",
|
||||||
i);
|
i);
|
||||||
|
|
Loading…
Reference in a new issue