[PATCH] Braces added to the if

Javad Rahimi javad321javad at gmail.com
Tue Dec 7 08:12:15 CET 2021


Signed-off-by: Javad Rahimi <javad321javad at gmail.com>
---

 board/sunxi/board.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index ff80283702..62d32b6329 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -1017,9 +1017,10 @@ void __led_init (led_id_t mask, int state)
 
 	ret = gpio_lookup_name(CUBIE2_LED_BOOT_GPIO, NULL, NULL, &gpio_boot_led);
 
-	if (ret)
+	if (ret) {
 		debug("[gpio_lookup_name]LED Err: %d", ret);
 		return;
+	}
 
 	gpio_request(gpio_boot_led, "boot_led");
 	gpio_direction_output(gpio_boot_led, 1);
-- 
2.25.1



More information about the U-Boot mailing list