Files
Arnd Bergmann 5b6e810f35 megaraid_sas: add missing curly braces in ioctl handler
commit 3deb9438d3 upstream.

gcc-6 found a dubious indentation in the megasas_mgmt_fw_ioctl
function:

drivers/scsi/megaraid/megaraid_sas_base.c: In function 'megasas_mgmt_fw_ioctl':
drivers/scsi/megaraid/megaraid_sas_base.c:6658:4: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
    kbuff_arr[i] = NULL;
    ^~~~~~~~~
drivers/scsi/megaraid/megaraid_sas_base.c:6653:3: note: ...this 'if' clause, but it is not
   if (kbuff_arr[i])
   ^~

The code is actually correct, as there is no downside in clearing a NULL
pointer again.

This clarifies the code and avoids the warning by adding extra curly
braces.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 90dc9d98f0 ("megaraid_sas : MFI MPT linked list corruption fix")
Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-04 14:48:54 -07: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-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
2015-11-09 17:11:57 -08:00
2015-12-03 09:32:33 -08:00
2015-11-12 07:06:18 -05:00
2015-11-12 07:06:18 -05:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2015-04-27 10:05:55 -07:00
2015-11-09 17:11:57 -08:00
…
…
…
…
…
…
…
2015-12-03 09:32:33 -08:00
…
2015-04-17 10:13:56 -07:00
…
2015-07-31 13:31:10 +02: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-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
…
…
…
2015-11-09 19:32:41 -05:00
2015-06-02 17:24:54 -07:00
…
2015-12-03 09:32:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-12 07:06:18 -05:00
…
…
…
2015-11-09 17:11:57 -08:00
…
…
2016-04-12 09:08:38 -07:00
…
…
2016-02-25 12:01:16 -08:00
…
2015-12-03 09:32:33 -08:00
2015-06-02 08:03:25 -07:00
2015-11-09 17:42:19 -08:00
…
…
…
…
…
…