Unused. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- drivers/scsi/megaraid/megaraid_sas.h | 2 -- drivers/scsi/megaraid/megaraid_sas_base.c | 10 +++------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index 83d8c4cb1ad5..d295a2036588 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++ b/drivers/scsi/megaraid/megaraid_sas.h @@ -2323,7 +2323,6 @@ struct megasas_instance { struct megasas_pd_list pd_list[MEGASAS_MAX_PD]; struct megasas_pd_list local_pd_list[MEGASAS_MAX_PD]; u8 ld_ids[MEGASAS_MAX_LD_IDS]; - s8 init_id; u16 max_num_sge; u16 max_fw_cmds; @@ -2359,7 +2358,6 @@ struct megasas_instance { wait_queue_head_t abort_cmd_wait_q; struct pci_dev *pdev; - u32 unique_id; u32 fw_support_ieee; u32 threshold_reply_count; diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index fb9c3ceed508..949ae49a6967 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -3425,6 +3425,7 @@ static struct scsi_host_template megasas_template = { .bios_param = megasas_bios_param, .change_queue_depth = scsi_change_queue_depth, .max_segment_size = 0xffffffff, + .this_id = -1, }; /** @@ -5494,9 +5495,7 @@ megasas_init_adapter_mfi(struct megasas_instance *instance) goto fail_fw_init; if (megasas_get_ctrl_info(instance)) { - dev_err(&instance->pdev->dev, "(%d): Could get controller info " - "Fail from %s %d\n", instance->unique_id, - __func__, __LINE__); + dev_err(&instance->pdev->dev, "Couldn't get controller info\n"); goto fail_fw_init; } @@ -6758,9 +6757,7 @@ static int megasas_io_attach(struct megasas_instance *instance) /* * Export parameters required by SCSI mid-layer */ - host->unique_id = instance->unique_id; host->can_queue = instance->max_scsi_cmds; - host->this_id = instance->init_id; host->sg_tablesize = instance->max_num_sge; if (instance->fw_support_ieee) @@ -7346,8 +7343,7 @@ static int megasas_probe_one(struct pci_dev *pdev, */ instance->pdev = pdev; instance->host = host; - instance->unique_id = pdev->bus->number << 8 | pdev->devfn; - instance->init_id = MEGASAS_DEFAULT_INIT_ID; + host->unique_id = pdev->bus->number << 8 | pdev->devfn; megasas_set_adapter_type(instance); -- 2.16.4