alistair23-linux/drivers/scsi/mvsas
Arnd Bergmann af15769ffa scsi: mvsas: fix command_active typo
gcc-7 notices that the condition in mvs_94xx_command_active looks
suspicious:

drivers/scsi/mvsas/mv_94xx.c: In function 'mvs_94xx_command_active':
drivers/scsi/mvsas/mv_94xx.c:671:15: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context]

This was introduced when the mv_printk() statement got added, and leads
to the condition being ignored. This is probably harmless.

Changing '&&' to '&' makes the code look reasonable, as we check the
command bit before setting and printing it.

Fixes: a4632aae8b ("[SCSI] mvsas: Add new macros and functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-11-16 20:49:08 -05:00
..
Kconfig
Makefile
mv_64xx.c scsi: mvsas: Mark symbols static where possible 2016-09-26 21:15:55 -04:00
mv_64xx.h
mv_94xx.c scsi: mvsas: fix command_active typo 2016-11-16 20:49:08 -05:00
mv_94xx.h mvsas: Add SGPIO support to Marvell 94xx 2016-01-06 15:18:49 -05:00
mv_chips.h
mv_defs.h
mv_init.c mvsas: Generalize Marvell 9485 in pci_device_id 2016-04-15 16:53:11 -04:00
mv_sas.c scsi: mvsas: Mark symbols static where possible 2016-09-26 21:15:55 -04:00
mv_sas.h mvsas: Add SGPIO support to Marvell 94xx 2016-01-06 15:18:49 -05:00