summaryrefslogtreecommitdiff
path: root/v4l2-drm-example
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-drm-example')
-rw-r--r--v4l2-drm-example/dmabuf-sharing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/v4l2-drm-example/dmabuf-sharing.c b/v4l2-drm-example/dmabuf-sharing.c
index 7577a6e..35cb38c 100644
--- a/v4l2-drm-example/dmabuf-sharing.c
+++ b/v4l2-drm-example/dmabuf-sharing.c
@@ -150,8 +150,10 @@ static inline int parse_rect(char *s, struct v4l2_rect *r)
static int parse_args(int argc, char *argv[], struct setup *s)
{
- if (argc <= 1)
+ if (argc <= 1) {
usage(argv[0]);
+ return -1;
+ }
int c, ret;
memset(s, 0, sizeof(*s));