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)
commit12de280b36f0e0599c7f170aa7f1058f3aeb6d9d
tree90c064dc2c4b3ff4fa3cacccc65766737a4f014d
parent3f7e62bba0003f9c68f599f5997c4647ef5b4f4e
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: 1e46731efd9c ("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