Commit ae68b566 authored by Xiang Chen's avatar Xiang Chen Committed by Martin K. Petersen

scsi: hisi_sas: Remove unused parameter of function hisi_sas_alloc()

In function hisi_sas_alloc(), parameter shost is not used, so remove it.
Signed-off-by: default avatarXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ffb1c820
...@@ -497,7 +497,7 @@ extern bool hisi_sas_debugfs_enable; ...@@ -497,7 +497,7 @@ extern bool hisi_sas_debugfs_enable;
extern struct dentry *hisi_sas_debugfs_dir; extern struct dentry *hisi_sas_debugfs_dir;
extern void hisi_sas_stop_phys(struct hisi_hba *hisi_hba); extern void hisi_sas_stop_phys(struct hisi_hba *hisi_hba);
extern int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost); extern int hisi_sas_alloc(struct hisi_hba *hisi_hba);
extern void hisi_sas_free(struct hisi_hba *hisi_hba); extern void hisi_sas_free(struct hisi_hba *hisi_hba);
extern u8 hisi_sas_get_ata_protocol(struct host_to_dev_fis *fis, extern u8 hisi_sas_get_ata_protocol(struct host_to_dev_fis *fis,
int direction); int direction);
......
...@@ -2074,7 +2074,7 @@ void hisi_sas_init_mem(struct hisi_hba *hisi_hba) ...@@ -2074,7 +2074,7 @@ void hisi_sas_init_mem(struct hisi_hba *hisi_hba)
} }
EXPORT_SYMBOL_GPL(hisi_sas_init_mem); EXPORT_SYMBOL_GPL(hisi_sas_init_mem);
int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost) int hisi_sas_alloc(struct hisi_hba *hisi_hba)
{ {
struct device *dev = hisi_hba->dev; struct device *dev = hisi_hba->dev;
int i, j, s, max_command_entries = hisi_hba->hw->max_command_entries; int i, j, s, max_command_entries = hisi_hba->hw->max_command_entries;
...@@ -2357,7 +2357,7 @@ static struct Scsi_Host *hisi_sas_shost_alloc(struct platform_device *pdev, ...@@ -2357,7 +2357,7 @@ static struct Scsi_Host *hisi_sas_shost_alloc(struct platform_device *pdev,
goto err_out; goto err_out;
} }
if (hisi_sas_alloc(hisi_hba, shost)) { if (hisi_sas_alloc(hisi_hba)) {
hisi_sas_free(hisi_hba); hisi_sas_free(hisi_hba);
goto err_out; goto err_out;
} }
......
...@@ -2591,7 +2591,7 @@ hisi_sas_shost_alloc_pci(struct pci_dev *pdev) ...@@ -2591,7 +2591,7 @@ hisi_sas_shost_alloc_pci(struct pci_dev *pdev)
if (hisi_sas_get_fw_info(hisi_hba) < 0) if (hisi_sas_get_fw_info(hisi_hba) < 0)
goto err_out; goto err_out;
if (hisi_sas_alloc(hisi_hba, shost)) { if (hisi_sas_alloc(hisi_hba)) {
hisi_sas_free(hisi_hba); hisi_sas_free(hisi_hba);
goto err_out; goto err_out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment