summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:40:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:56:53 +0900
commit08a69d228487a2356df3919a68fc749c2a696258 (patch)
tree13c6303cbdb8bc0af850ffe4e0ea200fb5758eb4
parentff269912207ed2d1480cdee1f5e7b07caaa8876d (diff)
eeze_disk - remove redundant if check already done
removes redundant fi check. not a bug but analysers dont like it and it is redundant found by PVS studio
-rw-r--r--src/lib/eeze/eeze_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eeze/eeze_disk.c b/src/lib/eeze/eeze_disk.c
index d1c77b44ba..60c4fa74b7 100644
--- a/src/lib/eeze/eeze_disk.c
+++ b/src/lib/eeze/eeze_disk.c
@@ -296,11 +296,11 @@ eeze_disk_scan(Eeze_Disk *disk)
296 if (!disk->cache.vendor) 296 if (!disk->cache.vendor)
297 disk->cache.vendor = udev_device_get_property_value(disk->device, "ID_VENDOR"); 297 disk->cache.vendor = udev_device_get_property_value(disk->device, "ID_VENDOR");
298 if (!disk->cache.vendor) 298 if (!disk->cache.vendor)
299 if (!disk->cache.vendor) disk->cache.vendor = udev_device_get_sysattr_value(disk->device, "vendor"); 299 disk->cache.vendor = udev_device_get_sysattr_value(disk->device, "vendor");
300 if (!disk->cache.model) 300 if (!disk->cache.model)
301 disk->cache.model = udev_device_get_property_value(disk->device, "ID_MODEL"); 301 disk->cache.model = udev_device_get_property_value(disk->device, "ID_MODEL");
302 if (!disk->cache.model) 302 if (!disk->cache.model)
303 if (!disk->cache.model) disk->cache.model = udev_device_get_sysattr_value(disk->device, "model"); 303 disk->cache.model = udev_device_get_sysattr_value(disk->device, "model");
304 if (!disk->cache.serial) 304 if (!disk->cache.serial)
305 disk->cache.serial = udev_device_get_property_value(disk->device, "ID_SERIAL_SHORT"); 305 disk->cache.serial = udev_device_get_property_value(disk->device, "ID_SERIAL_SHORT");
306 if (!disk->cache.uuid) 306 if (!disk->cache.uuid)