code style
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 19 Sep 2014 09:33:28 +0000 (11:33 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 19 Sep 2014 09:33:28 +0000 (11:33 +0200)
src/lib/psensor.c

index 653b1b2..ef974f0 100644 (file)
@@ -419,10 +419,8 @@ struct psensor **get_all_sensors(int use_libatasmart, int values_max_length)
                hddtemp_psensor_list_append(&psensors, values_max_length);
 
 #ifdef HAVE_ATASMART
-               else {
-                       atasmart_psensor_list_append(&psensors,
-                                                    values_max_length);
-               }
+       else
+               atasmart_psensor_list_append(&psensors, values_max_length);
 #endif
 
        if (!psensors) {        /* there is no detected sensors */