eeze disk - remove uneeded extra check for test var
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 01:18:55 +0000 (10:18 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 01:37:51 +0000 (10:37 +0900)
test for non null already done above, so test must obviously be null
here so no need to check. analysers dont like this but it's not a bug.
make them happy thought

found by PVS studio

src/lib/eeze/eeze_disk.c

index d28ad77..d1c77b4 100644 (file)
@@ -52,7 +52,7 @@ _eeze_disk_type_find(Eeze_Disk *disk)
         if (!strcmp(test, "usb")) return EEZE_DISK_TYPE_USB;
         return EEZE_DISK_TYPE_UNKNOWN; /* FIXME */
      }
-   if ((!test) && (!filesystem))
+   if (!filesystem)
      test = _walk_children_get_attr(disk->syspath, "ID_BUS", "block", EINA_TRUE);
    if (!test)
      {