]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit516834c86faf958c788441487eb37eeb50839879
tree8690506f9060347020a7eff518d654f646e6591c
parent74607d355ac4dea60883e44978235ba9e7aed5e9
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