fix dead assigns for clang shutups

SVN revision: 50974
This commit is contained in:
Mike Blumenkrantz 2010-08-10 20:44:57 +00:00
parent 6b5d5eab73
commit 0136fa4aed
2 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,7 @@ _walk_parents_test_attr(_udev_device * device, const char *sysattr,
_udev_device *parent, *child = device;
const char *test;
if ((test = udev_device_get_sysattr_value(device, sysattr)))
if (udev_device_get_sysattr_value(device, sysattr))
return 1;
parent = udev_device_get_parent(child);

View File

@ -200,11 +200,10 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler * fd_handler)
goto error;
/* 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"))
{
for (parent = udev_device_get_parent(device); parent; parent = udev_device_get_parent(parent)) /*check for parent */
if (((test =
udev_device_get_sysattr_value(parent, "temp1_input"))))
if (udev_device_get_sysattr_value(parent, "temp1_input"))
{
tmpdev = device;