Re: [PATCHv2 03/13] v4l2-ioctl.c: don't copy back the result for -ENOTTY

2018-01-30 Thread Sakari Ailus
On Tue, Jan 30, 2018 at 11:26:51AM +0100, Hans Verkuil wrote: > From: Hans Verkuil > > If the ioctl returned -ENOTTY, then don't bother copying > back the result as there is no point. > > Signed-off-by: Hans Verkuil > Cc:

[PATCHv2 03/13] v4l2-ioctl.c: don't copy back the result for -ENOTTY

2018-01-30 Thread Hans Verkuil
From: Hans Verkuil If the ioctl returned -ENOTTY, then don't bother copying back the result as there is no point. Signed-off-by: Hans Verkuil Cc: # for v4.15 and up --- drivers/media/v4l2-core/v4l2-ioctl.c | 5 -