From f855d890b028581468f2717b442ade51b65fa010 Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 7 Nov 2021 16:40:30 +0000 Subject: [PATCH] Simplify print logic OK patrick --- sys/dev/fdt/gpioleds.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/fdt/gpioleds.c b/sys/dev/fdt/gpioleds.c index 889d30f1941..626c0846195 100644 --- a/sys/dev/fdt/gpioleds.c +++ b/sys/dev/fdt/gpioleds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpioleds.c,v 1.1 2021/09/25 10:43:24 kn Exp $ */ +/* $OpenBSD: gpioleds.c,v 1.2 2021/11/07 16:40:30 kn Exp $ */ /* * Copyright (c) 2021 Klemens Nanni * @@ -94,9 +94,7 @@ gpioleds_attach(struct device *parent, struct device *self, void *aux) free(led_pin, M_TEMP, gpios_len); } - if (leds == 0) { - printf(": no LEDs\n"); - return; - } + if (leds == 0) + printf(": no LEDs"); printf("\n"); } -- 2.20.1