From 8073f8c98f5b6bac85da2d8aae78237d56dfcf32 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 20 Jan 2017 21:52:21 +0100 Subject: [PATCH] msm8976-common: lights: s/if(/if (/g --- liblight/lights.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liblight/lights.c b/liblight/lights.c index 46a7d8a..b5d650f 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -90,7 +90,7 @@ set_light_backlight(struct light_device_t* dev, { int err = 0; int brightness = rgb_to_brightness(state); - if(!dev) { + if (!dev) { return -1; } pthread_mutex_lock(&g_lock); @@ -105,7 +105,7 @@ set_light_buttons(struct light_device_t* dev, { int err = 0; int on = (state->color & 0xFF); - if(!dev) { + if (!dev) { return -1; } pthread_mutex_lock(&g_lock); @@ -149,7 +149,7 @@ static int open_lights(const struct hw_module_t* module, char const* name, struct light_device_t *dev = malloc(sizeof(struct light_device_t)); - if(!dev) + if (!dev) return -ENOMEM; memset(dev, 0, sizeof(*dev));