Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yoav Cohen and committed by
Jens Axboe
9e386f49 78796b6b

+3 -3
+3 -3
drivers/block/ublk_drv.c
··· 3459 3459 header->data[0], header->addr, header->len); 3460 3460 } 3461 3461 3462 - static int ublk_ctrl_stop_dev(struct ublk_device *ub) 3462 + static void ublk_ctrl_stop_dev(struct ublk_device *ub) 3463 3463 { 3464 3464 ublk_stop_dev(ub); 3465 - return 0; 3466 3465 } 3467 3466 3468 3467 static int ublk_ctrl_get_dev_info(struct ublk_device *ub, ··· 3934 3935 ret = ublk_ctrl_start_dev(ub, header); 3935 3936 break; 3936 3937 case UBLK_CMD_STOP_DEV: 3937 - ret = ublk_ctrl_stop_dev(ub); 3938 + ublk_ctrl_stop_dev(ub); 3939 + ret = 0; 3938 3940 break; 3939 3941 case UBLK_CMD_GET_DEV_INFO: 3940 3942 case UBLK_CMD_GET_DEV_INFO2: