scsi: hisi_sas: use array for v2 hw AXI errors
authorShiju Jose <shiju.jose@huawei.com>
Tue, 24 Oct 2017 15:51:39 +0000 (23:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 25 Oct 2017 12:21:04 +0000 (08:21 -0400)
commit729428ca906140a59d94768ac8c8d7a8494c064b
tree239c8a4ebdf9132fa176f60145109923f3ce2d02
parent6ba0fbc35aa9f3bc8c12be3b4047055c9ce2ac92
scsi: hisi_sas: use array for v2 hw AXI errors

The code to print AXI errors in v2 hw driver is repetitive.

This patch condenses the code by looping an array of errors.

Also, a formatting error in one_bit_ecc_errors[] and
multi_bit_ecc_errors[] is fixed.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c