]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: smartpqi_init: fix boolean expression in pqi_device_remove_start
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 3 Jan 2019 16:47:44 +0000 (10:47 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:57:26 +0000 (21:57 -0500)
commit677402e1811e4d775bf55ef4ad129e84212e292b
tree90c064dc2c4b3ff4fa3cacccc65766737a4f014d
parent81188c9ffdbfd5a7b4878cadbe96312ea2159193
scsi: smartpqi_init: fix boolean expression in pqi_device_remove_start

Fix boolean expression by using logical AND operator '&&' instead of
bitwise operator '&'.

This issue was detected with the help of Coccinelle.

Fixes: 5d335d6f3372 ("scsi: smartpqi: check for null device pointers")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c