scsi: smartpqi: Use HCTX_TYPE_DEFAULT for blk_mq_tag_set->map
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 12 Mar 2019 01:00:31 +0000 (09:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 19:29:10 +0000 (15:29 -0400)
Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c

index 06344b5d1126eb2985c881a5f9deed0df7cb670a..c26cac819f9e7a2ceaf9638fdebd600a7639f21f 100644 (file)
@@ -5792,7 +5792,7 @@ static int pqi_map_queues(struct Scsi_Host *shost)
 {
        struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost);
 
-       return blk_mq_pci_map_queues(&shost->tag_set.map[0],
+       return blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
                                        ctrl_info->pci_dev, 0);
 }