]> asedeno.scripts.mit.edu Git - linux.git/commit
typec: tcpm: Fix incorrect 'and' operator
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 30 Apr 2018 13:23:06 +0000 (08:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Apr 2018 16:05:44 +0000 (09:05 -0700)
commit252427037a360dcf4ee4b38e3b11c85e884b6646
tree73ebe4bdc2993c64510770b1a64949fa5c88fa20
parent890fa45d01eb89304ef26564cc310747f56b5438
typec: tcpm: Fix incorrect 'and' operator

Currently, logical and is being used instead of *bitwise* and.

Fix this by using a proper bitwise and operator.

Addresses-Coverity-ID: 1468455 ("Logical vs. bitwise operator")
Fixes: 64f7c494a3c0 ("typec: tcpm: Add support for sink PPS related messages")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm.c