aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rds-ctl
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rds-ctl')
-rw-r--r--utils/rds-ctl/rds-ctl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index f6b34a7a..93e314c2 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -691,7 +691,8 @@ static void read_rds(struct v4l2_rds *handle, const int fd, const int wait_limit
if (byte_cnt == 0) {
printf("\nEnd of input file reached \n");
break;
- } else if(++error_cnt > 2) {
+ }
+ if (++error_cnt > 2) {
fprintf(stderr, "\nError reading from "
"device (no RDS data available)\n");
break;

Privacy Policy