]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: use array for v2 hw ECC errors
authorJohn Garry <john.garry@huawei.com>
Thu, 10 Aug 2017 16:09:30 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Aug 2017 00:15:02 +0000 (20:15 -0400)
commit2b3833510d7f85120ba4dbaf2d5575415f09d27b
treee811deaa5bfa205033394e66b5c639205ceb1492
parentc52108c61bd3e97495858e6c7423d312093fcfba
scsi: hisi_sas: use array for v2 hw ECC errors

The code to print ECC errors in v2 hw driver is very repetitive.  This
patch condensed the code by looping an array of errors.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@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