summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/mxc/output/mxc_vout.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/mxc/output/mxc_vout.c b/drivers/media/platform/mxc/output/mxc_vout.c
index a54df6146fda..adad6f23e7b8 100644
--- a/drivers/media/platform/mxc/output/mxc_vout.c
+++ b/drivers/media/platform/mxc/output/mxc_vout.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011-2015 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2020 NXP
*/
/*
@@ -1422,9 +1423,6 @@ static int mxc_vidioc_s_selection(struct file *file, void *fh,
if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
return -EINVAL;
- if (s->r.width < 0 || s->r.height < 0)
- return -EINVAL;
-
if (s->r.width == 0)
fix_up_selection.r.width = b->width - b->left;
if (s->r.height == 0)