mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
[media] s5p-jpeg: g_selection callback should always succeed
Remove erroneous guard preventing successful execution of g_selection callback in case the driver variant is different from SJPEG_S5P. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
bf689bb819
commit
38a6ef3374
@ -1177,8 +1177,7 @@ static int s5p_jpeg_g_selection(struct file *file, void *priv,
|
|||||||
struct s5p_jpeg_ctx *ctx = fh_to_ctx(priv);
|
struct s5p_jpeg_ctx *ctx = fh_to_ctx(priv);
|
||||||
|
|
||||||
if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
|
if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
|
||||||
s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
|
s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||||
ctx->jpeg->variant->version != SJPEG_S5P)
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* For JPEG blob active == default == bounds */
|
/* For JPEG blob active == default == bounds */
|
||||||
|
Loading…
Reference in New Issue
Block a user