From 7a33697b850c8a0caaa08e3e41b37669da676f93 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 19 Oct 2015 13:18:34 +0200 Subject: [PATCH] led: Fixed code style --- src/drivers/led/led.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drivers/led/led.cpp b/src/drivers/led/led.cpp index 831e8f4634..f74253fa37 100644 --- a/src/drivers/led/led.cpp +++ b/src/drivers/led/led.cpp @@ -125,6 +125,7 @@ LED::ioctl(device::file_t *filp, int cmd, unsigned long arg) result = VDev::ioctl(filp, cmd, arg); #endif } + return result; } @@ -138,7 +139,9 @@ drv_led_start(void) { if (gLED == nullptr) { gLED = new LED; - if (gLED != nullptr) + + if (gLED != nullptr) { gLED->init(); + } } }