Files
linux/drivers/scsi/isci
Arnd Bergmann da8477a669 scsi: isci: avoid array subscript warning
commit 5cfa2a3c73 upstream.

I'm getting a new warning with gcc-7:

isci/remote_node_context.c: In function 'sci_remote_node_context_destruct':
isci/remote_node_context.c:69:16: error: array subscript is above array bounds [-Werror=array-bounds]

This is odd, since we clearly cover all values for enum
scis_sds_remote_node_context_states here. Anyway, checking for an array
overflow can't harm and it makes the warning go away.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-02 07:06:50 +02:00
..
2015-11-12 07:06:18 -05:00
2011-07-03 04:04:52 -07:00
2012-07-03 12:09:32 -07:00
2014-11-05 11:22:06 -05:00
2014-11-27 16:40:24 +01:00