summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2021-11-07 16:40:31 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2021-11-07 16:40:31 +0000
commit59f934354af2b4225483ed0541fe36ef88382b85 (patch)
tree870d386400310f5f7ce6c341554c6fc540240825 /sys
parent399f504303d10fac6102aeb756d712bf5ddd68c8 (diff)
Simplify print logic
OK patrick
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/gpioleds.c8
1 files 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 <kn@openbsd.org>
*
@@ -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");
}