]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
v4l: s5c73m3: fix negation operator
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 5 Jan 2017 12:34:07 +0000 (10:34 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 22 Aug 2017 09:58:03 +0000 (06:58 -0300)
commit3ff5b3861f6edd2b72cd13c9bd4fca56c67bff21
treec9289853492fac0104afc531f452d810fd9a1097
parent83633d5614a0a5f6aa3359d581b163df833405b4
v4l: s5c73m3: fix negation operator

BugLink: http://bugs.launchpad.net/bugs/1710646
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c