]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2-ioctl: simplify code
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 29 Feb 2016 10:16:39 +0000 (07:16 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 19:43:27 +0000 (16:43 -0300)
commit54ace1cfd4358fd11112f17cc711eea234d5ab9e
tree08518c4ee0bf6460ed31881df5c2aeccb387a7b8
parent9765a32cd802709d152a0d73d0cbfd07c9f49808
[media] v4l2-ioctl: simplify code

Instead of a big if at the beginning, just check if g_selection == NULL
and call the cropcap op immediately and return the result.

No functional changes in this patch.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c