diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/e300/e300_sysfs_hooks.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/e300/e300_sysfs_hooks.cpp b/host/lib/usrp/e300/e300_sysfs_hooks.cpp index ee2ac21d7..7bd1d6d7e 100644 --- a/host/lib/usrp/e300/e300_sysfs_hooks.cpp +++ b/host/lib/usrp/e300/e300_sysfs_hooks.cpp @@ -65,10 +65,11 @@ std::string e300_get_sysfs_attr(const std::string &node, const std::string &attr dev = udev_device_new_from_syspath(udev, path); retstring = udev_device_get_sysattr_value(dev, attr.c_str()); - if (retstring.size()) - break; udev_device_unref(dev); + + if (retstring.size()) + break; } udev_enumerate_unref(enumerate); |