aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/validate_subdev_spec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/common/validate_subdev_spec.cpp')
-rw-r--r--host/lib/usrp/common/validate_subdev_spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/validate_subdev_spec.cpp b/host/lib/usrp/common/validate_subdev_spec.cpp
index 61895a7f8..dc9c7700a 100644
--- a/host/lib/usrp/common/validate_subdev_spec.cpp
+++ b/host/lib/usrp/common/validate_subdev_spec.cpp
@@ -32,7 +32,7 @@ void uhd::usrp::validate_subdev_spec(property_tree::sptr tree,
tree->list(str(boost::format("/mboards/%s/%s_dsps") % mb % type)).size();
// sanity checking on the length
- if (spec.size() == 0)
+ if (spec.empty())
throw uhd::value_error(
str(boost::format("Empty %s subdevice specification is not supported.\n")
% type));