Re: [PATCH 1/2] v4l2-ioctl: simplify code

2016-03-14 Thread Niklas Söderlund
On 2016-03-14 13:52:17 +0100, Hans Verkuil wrote: > On 03/14/2016 01:42 PM, Niklas Söderlund wrote: > > Hi Hans, > > > > On 2016-02-29 11:16:39 +0100, Hans Verkuil wrote: > >> From: Hans Verkuil > >> > >> Instead of a big if at the beginning, just check if g_selection ==

Re: [PATCH 1/2] v4l2-ioctl: simplify code

2016-03-14 Thread Hans Verkuil
On 03/14/2016 01:42 PM, Niklas Söderlund wrote: > Hi Hans, > > On 2016-02-29 11:16:39 +0100, Hans Verkuil wrote: >> From: Hans Verkuil >> >> Instead of a big if at the beginning, just check if g_selection == NULL >> and call the cropcap op immediately and return the

Re: [PATCH 1/2] v4l2-ioctl: simplify code

2016-03-14 Thread Niklas Söderlund
Hi Hans, On 2016-02-29 11:16:39 +0100, Hans Verkuil wrote: > From: Hans Verkuil > > 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. > >