aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rds-ctl/rds-ctl.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-15 21:10:46 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-04-17 10:25:10 +0200
commit52106d15765cd34e54a7b60a0add6eaa55d73432 (patch)
tree048cf4c6783ad2869e8ae7dcdc83551ab451b523 /utils/rds-ctl/rds-ctl.cpp
parentb1360635cb2d60806ad04bfb1ace50190e15c542 (diff)
utils: checks for empty instead of size in if
Found with clang-tidy's readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/rds-ctl/rds-ctl.cpp')
-rw-r--r--utils/rds-ctl/rds-ctl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index 06b6344e..f6b34a7a 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -992,7 +992,7 @@ int main(int argc, char **argv)
if (!params.options[OptSetDevice]) {
/* check the system for RDS capable devices */
dev_vec devices = list_devices();
- if (devices.size() == 0) {
+ if (devices.empty()) {
fprintf(stderr, "No RDS-capable device found\n");
exit(1);
}

Privacy Policy