]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51c8960b6d72d7677899a4b84ab894f0d888a756
tree239c8a4ebdf9132fa176f60145109923f3ce2d02
parent28097ccba0d382c902086d1b881399f69d2bef0e
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