linux/drivers/i3c/master
Colin Ian King 2b2b283c05 i3c: master: dw: fix mask operation by using the correct operator
The masking operation on status is using a bitwise 'or' rather than
a bitwise 'and' operator, and hence the result is always non-zero
which is probably not what is intended. Fix this by using the correct
operator.

Detected by CoverityScan, CID#1475523 ("Wrong operator used")

Fixes: 88acc98a712a ("i3c: master: Add driver for Synopsys DesignWare IP")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Vitor Soares <vitor.soares@synopsys.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-12-05 17:22:58 +01:00
..
dw-i3c-master.c i3c: master: dw: fix mask operation by using the correct operator 2018-12-05 17:22:58 +01:00
i3c-master-cdns.c i3c: master: Remove set but not used variable 'old_i3c_scl_lim' 2018-12-05 17:22:58 +01:00
Kconfig i3c: master: Add driver for Synopsys DesignWare IP 2018-12-05 17:22:58 +01:00
Makefile i3c: master: Add driver for Synopsys DesignWare IP 2018-12-05 17:22:58 +01:00