Re: [PATCH] v4l2-ctrls.c: add NULL check

2017-01-25 Thread Sakari Ailus
On Wed, Jan 25, 2017 at 08:38:07AM +0100, Hans Verkuil wrote: > Check that the control whose events we want to delete is still there. > > Normally this will always be the case, but I am not 100% certain if there > aren't > any corner cases when a device is forcibly unbound. > > In any case, this

[PATCH] v4l2-ctrls.c: add NULL check

2017-01-24 Thread Hans Verkuil
Check that the control whose events we want to delete is still there. Normally this will always be the case, but I am not 100% certain if there aren't any corner cases when a device is forcibly unbound. In any case, this will satisfy static checkers and simply make it more robust. Signed-off-by: