From b4db71d32b3560a6ea7f520c9371eb3cbdf03446 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 15 Jan 2011 20:24:13 +0000 Subject: [PATCH] fix a dead store and make removable drive finds return non-usb devices as well SVN revision: 56142 --- legacy/eeze/src/lib/eeze_udev_find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eeze/src/lib/eeze_udev_find.c b/legacy/eeze/src/lib/eeze_udev_find.c index 08c4e8b55b..d559876292 100644 --- a/legacy/eeze/src/lib/eeze_udev_find.c +++ b/legacy/eeze/src/lib/eeze_udev_find.c @@ -275,7 +275,7 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype, goto out; /* if device is not the one which has the temp input, we must go up the chain */ - if (!(test = udev_device_get_sysattr_value(device, "temp1_input"))) + if (!udev_device_get_sysattr_value(device, "temp1_input")) { devname = NULL; @@ -297,7 +297,7 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype, } else if (etype == EEZE_UDEV_TYPE_DRIVE_REMOVABLE) { - if (!(test = udev_device_get_property_value(device, "ID_USB_DRIVER"))) + if (!(test = udev_device_get_property_value(device, "ID_BUS")) || (!strncmp(test, "ata", 3))) goto out; } else if (etype == EEZE_UDEV_TYPE_DRIVE_MOUNTABLE)