OSDN Git Service

scsi: libsas: Move sas_get_ata_command_set() up to save the declaration
authorJason Yan <yanaijie@huawei.com>
Wed, 14 Dec 2022 13:38:04 +0000 (21:38 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Dec 2022 16:59:10 +0000 (16:59 +0000)
commit6c90466e2803d93ed47a980fbf184d35e012d895
tree419be46a264ac0ddc67972a8eebfbe7814860478
parent4d450cf2b00d34b53f52d93216dd23af57bdca73
scsi: libsas: Move sas_get_ata_command_set() up to save the declaration

There is a sas_get_ata_command_set() declaration above sas_get_ata_info()
to make it compile. However, this function is defined in the same
file. Move it up to save the forward declaration.

Also remove the variable 'fis' which is not needed in this function.

Cc: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_ata.c