drivers/usb/ehci_debug.c: Drop preprocessor usage

There's no need to use ugly preprocessor here when regular C conditional
statements will work just fine.

Change-Id: I5abd445a335b43fb95e4df087d44e82c3f44349b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43295
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Angel Pons 2020-07-08 14:08:41 +02:00
parent 54ff67c698
commit a0a94d8c64
1 changed files with 14 additions and 16 deletions

View File

@ -584,7 +584,7 @@ err:
//return ret;
next_debug_port:
#if CONFIG_USBDEBUG_DEFAULT_PORT == 0
if (CONFIG_USBDEBUG_DEFAULT_PORT == 0) {
port_map_tried |= (1 << (debug_port - 1));
new_debug_port = ((debug_port-1 + 1) % n_ports) + 1;
if (port_map_tried != ((1 << n_ports) - 1)) {
@ -595,12 +595,10 @@ next_debug_port:
ehci_debug_select_port(new_debug_port);
goto try_next_time;
}
#else
if (0)
goto try_next_port;
} else {
if (--playtimes)
goto try_next_time;
#endif
}
return -10;
}