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
This commit is contained in:
Carsten Haitzler 2017-07-29 10:18:55 +09:00
parent 157caee2c0
commit d532f28284
1 changed files with 1 additions and 1 deletions

View 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)
{