scsi: libsas: Stop hardcoding SAS address length
authorJohn Garry <john.garry@huawei.com>
Fri, 12 Apr 2019 08:57:52 +0000 (16:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 15 Apr 2019 22:55:00 +0000 (18:55 -0400)
commit7b27c5fe247b4288f41551ced5bf458f58dc77b8
tree8690506f9060347020a7eff518d654f646e6591c
parent01d4e3a2fc07b269eedeefa1f7c5c7090c442900
scsi: libsas: Stop hardcoding SAS address length

Many times we use 8 for SAS address length, while we already have a macro
for this - SAS_ADDR_SIZE.

Replace instances of this with the macro. However, don't touch the SAS
address array sizes sas.h, as these are defined according to the SAS spec.

Some missing whitespaces are also added, and whitespace indentation
in sas_hash_addr() is also fixed (see sas_hash_addr()).

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_expander.c
drivers/scsi/libsas/sas_init.c
include/scsi/libsas.h