aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-03-11 09:46:29 -0800
committerMartin Braun <martin.braun@ettus.com>2016-03-11 09:46:29 -0800
commit94230735279c721424ef001a799c780dc937a091 (patch)
treec476b516144b76730cc18788cba2b0c712a917b2 /host/lib/usrp/e300
parent165fd400e995c9652c2dfe85c2fd589b750a2620 (diff)
parentccc8acb743aaab6cd3e926d5901fa3fa4114a469 (diff)
downloaduhd-94230735279c721424ef001a799c780dc937a091.tar.gz
uhd-94230735279c721424ef001a799c780dc937a091.tar.bz2
uhd-94230735279c721424ef001a799c780dc937a091.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/e300')
-rw-r--r--host/lib/usrp/e300/e300_sysfs_hooks.cpp5
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);