]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-audio: use | instead of || otherwise result is just boolean 1
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Feb 2017 11:57:11 +0000 (11:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2017 12:05:06 +0000 (13:05 +0100)
commit1d5bc167643af371b002fe4473d14b909b80f5d9
treef33cee256f9ae39738839484122424baf3e2a6cf
parentedeb1ff58ca31aa8225ca2b8121eded9eaa700b0
staging: bcm2835-audio: use | instead of || otherwise result is just boolean 1

The incorrect or operator is being used resulting in cookies being
set to 1 (true) rather than the intended hex value.  Fix this by
using | instead of ||.

Issue found with static analysis with cppcheck

Fixes: fb505bd1e1f9218e8ae ("staging: bcm2835-audio: Simplify callback structure for write data")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm2835-audio/bcm2835-vchiq.c