Skip to content

Commit 418edde

Browse files
paravmellanoxmstsirkin
authored andcommitted
vdpa: Use simpler version of ida allocation
vdpa doesn't have any specific need to define start and end range of the device index. Hence use the simper version of the ida allocator. Signed-off-by: Parav Pandit <[email protected]> Reviewed-by: Eli Cohen <[email protected]> Acked-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 476c135 commit 418edde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/vdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct vdpa_device *__vdpa_alloc_device(struct device *parent,
8989
if (!vdev)
9090
goto err;
9191

92-
err = ida_simple_get(&vdpa_index_ida, 0, 0, GFP_KERNEL);
92+
err = ida_alloc(&vdpa_index_ida, GFP_KERNEL);
9393
if (err < 0)
9494
goto err_ida;
9595

0 commit comments

Comments
 (0)