Files
linux/drivers
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
..
2017-08-06 19:19:47 -07:00
2017-08-30 10:19:23 +02:00
2017-08-06 19:19:41 -07:00
2016-09-24 10:07:35 +02:00
2017-08-30 10:19:22 +02:00
2017-04-21 09:30:07 +02:00
2017-08-24 17:02:36 -07:00