Skip to content

Commit 0d32014

Browse files
Ranjan Kumarmartinkpetersen
authored andcommitted
scsi: mpi3mr: Start controller indexing from 0
Instead of displaying the controller index starting from '1' make the driver display the controller index starting from '0'. Signed-off-by: Sumit Saxena <[email protected]> Signed-off-by: Ranjan Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 711201a commit 0d32014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpi3mr/mpi3mr_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5215,7 +5215,7 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id)
52155215
}
52165216

52175217
mrioc = shost_priv(shost);
5218-
retval = ida_alloc_range(&mrioc_ida, 1, U8_MAX, GFP_KERNEL);
5218+
retval = ida_alloc_range(&mrioc_ida, 0, U8_MAX, GFP_KERNEL);
52195219
if (retval < 0)
52205220
goto id_alloc_failed;
52215221
mrioc->id = (u8)retval;

0 commit comments

Comments
 (0)