Skip to content

Commit 9e386f4

Browse files
yoavcohaxboe
authored andcommitted
ublk: make ublk_ctrl_stop_dev return void
This function always returns 0, so there is no need to return a value. Signed-off-by: Yoav Cohen <yoav@nvidia.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 78796b6 commit 9e386f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/block/ublk_drv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3459,10 +3459,9 @@ static inline void ublk_ctrl_cmd_dump(struct io_uring_cmd *cmd)
34593459
header->data[0], header->addr, header->len);
34603460
}
34613461

3462-
static int ublk_ctrl_stop_dev(struct ublk_device *ub)
3462+
static void ublk_ctrl_stop_dev(struct ublk_device *ub)
34633463
{
34643464
ublk_stop_dev(ub);
3465-
return 0;
34663465
}
34673466

34683467
static int ublk_ctrl_get_dev_info(struct ublk_device *ub,
@@ -3935,7 +3934,8 @@ static int ublk_ctrl_uring_cmd(struct io_uring_cmd *cmd,
39353934
ret = ublk_ctrl_start_dev(ub, header);
39363935
break;
39373936
case UBLK_CMD_STOP_DEV:
3938-
ret = ublk_ctrl_stop_dev(ub);
3937+
ublk_ctrl_stop_dev(ub);
3938+
ret = 0;
39393939
break;
39403940
case UBLK_CMD_GET_DEV_INFO:
39413941
case UBLK_CMD_GET_DEV_INFO2:

0 commit comments

Comments
 (0)