summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-22 13:48:53 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-22 13:48:53 +0200
commit405e5307d823f02fcc683e87686eb22d0887ef91 (patch)
treec64a707f76426800f7fbfdc29458afe22e93820d
parent8793e1eb48efb0c969578d6639aade32ec1c879a (diff)
Remove unnecessary semicolons
The semicolons after the empty for loop statements are not needed. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--yavta.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/yavta.c b/yavta.c
index bcdcddb..f83e143 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1447,7 +1447,7 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
char *endptr;
__u32 value;
- for ( ; isspace(*val); ++val) { };
+ for ( ; isspace(*val); ++val) { }
if (*val == '<') {
/* Read the control value from the given file. */
@@ -1477,7 +1477,7 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
return -EINVAL;
for (i = 0; i < query->elems; ++i) {
- for ( ; isspace(*val); ++val) { };
+ for ( ; isspace(*val); ++val) { }
switch (query->type) {
case V4L2_CTRL_TYPE_U8:
@@ -1504,7 +1504,7 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
}
val = endptr;
- for ( ; isspace(*val); ++val) { };
+ for ( ; isspace(*val); ++val) { }
if (*val != ',')
break;
val++;
@@ -1513,11 +1513,11 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
if (i < query->elems - 1)
return -EINVAL;
- for ( ; isspace(*val); ++val) { };
+ for ( ; isspace(*val); ++val) { }
if (*val++ != '}')
return -EINVAL;
- for ( ; isspace(*val); ++val) { };
+ for ( ; isspace(*val); ++val) { }
if (*val++ != '\0')
return -EINVAL;