summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:18:55 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:37:51 +0900
commitd532f28284dc138b5cb05c342ddf14dd56933ea3 (patch)
treea783c6462dc5ee6721a940fc6b0c0741bcced0b8
parent157caee2c04834a62dfe496da51cab3df7330d27 (diff)
eeze disk - remove uneeded extra check for test var
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
-rw-r--r--src/lib/eeze/eeze_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_disk.c b/src/lib/eeze/eeze_disk.c
index d28ad775ea..d1c77b44ba 100644
--- a/src/lib/eeze/eeze_disk.c
+++ b/src/lib/eeze/eeze_disk.c
@@ -52,7 +52,7 @@ _eeze_disk_type_find(Eeze_Disk *disk)
52 if (!strcmp(test, "usb")) return EEZE_DISK_TYPE_USB; 52 if (!strcmp(test, "usb")) return EEZE_DISK_TYPE_USB;
53 return EEZE_DISK_TYPE_UNKNOWN; /* FIXME */ 53 return EEZE_DISK_TYPE_UNKNOWN; /* FIXME */
54 } 54 }
55 if ((!test) && (!filesystem)) 55 if (!filesystem)
56 test = _walk_children_get_attr(disk->syspath, "ID_BUS", "block", EINA_TRUE); 56 test = _walk_children_get_attr(disk->syspath, "ID_BUS", "block", EINA_TRUE);
57 if (!test) 57 if (!test)
58 { 58 {