浏览代码

Avoid redondant checking

Abdullah ibn Nadjo 7 年前
父节点
当前提交
2f14acb12e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      src/light.c

+ 1
- 2
src/light.c 查看文件

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;