Files
twx-linux/drivers/scsi
Arnd Bergmann e57c830c90 scsi: mvsas: fix command_active typo
commit af15769ffa upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:22:49 +01:00
..
2016-04-12 09:08:39 -07:00
…
2015-11-09 17:11:57 -08:00
…
2015-11-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
…
2015-11-12 07:06:18 -05:00
2015-11-12 07:06:18 -05:00
…
…
…
…
…
2016-07-27 09:47:39 -07:00
…
…
…
…
…
…
…
…
2015-12-03 09:32:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-09 17:11:57 -08:00
…
…
2015-11-09 16:32:14 -08:00
…
…
…
…
2015-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
2015-11-09 12:39:28 -05:00
…
…
…
…
…
…
…
…
2015-11-09 19:32:41 -05:00
…
…
2015-12-03 09:32:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-12 07:06:18 -05:00
…
…
…
…
…
2016-10-28 03:01:31 -04:00
2015-11-09 17:11:57 -08:00
…
…
…
…
2016-02-25 12:01:16 -08:00
…
2015-12-03 09:32:33 -08:00
…
2015-11-09 17:42:19 -08:00
…
…
…
…
…
…
…
…
…
…