OSDN Git Service

v4l: s5c73m3: fix negation operator
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 5 Jan 2017 12:34:07 +0000 (10:34 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 02:19:42 +0000 (19:19 -0700)
commitb3ddb091c77fae247b98b167e306da5b768ad612
tree16b2dba78b5b730a242bb9f6a4bd776ccc449ace
parent407669f2c9fe9f32aeb39f715d748fe456718aac
v4l: s5c73m3: fix negation operator

commit a2370ba2752538404e363346b339869c9973aeac upstream.

Bool values should be negated using logical operators. Using bitwise operators
results in unexpected and possibly incorrect results.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c