Browse Source

Avoid redondant checking

Abdullah ibn Nadjo 6 years ago
parent
commit
2f14acb12e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/light.c

+ 1
- 2
src/light.c View File

273
       return FALSE;
273
       return FALSE;
274
     }
274
     }
275
   }
275
   }
276
-
277
-  if(!light_controllerAccessible(light_Configuration.specifiedController))
276
+  else if(!light_controllerAccessible(light_Configuration.specifiedController))
278
   {
277
   {
279
     LIGHT_ERR("selected controller is not valid, make sure this application is run as root.");
278
     LIGHT_ERR("selected controller is not valid, make sure this application is run as root.");
280
     return FALSE;
279
     return FALSE;