Skip to content

Commit e6a2e51

Browse files
GuoYong Zhengaxboe
authored andcommitted
block: Remove unnecessary variable assignment
The parameter "ret" should be zero when running to this line, no need to set to zero again, remove it. Signed-off-by: GuoYong Zheng <zhenggy@chinatelecom.cn> Link: https://lore.kernel.org/r/1642414957-6785-1-git-send-email-zhenggy@chinatelecom.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0035893 commit e6a2e51

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

block/blk-sysfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ int blk_register_queue(struct gendisk *disk)
887887
kobject_uevent(&q->elevator->kobj, KOBJ_ADD);
888888
mutex_unlock(&q->sysfs_lock);
889889

890-
ret = 0;
891890
unlock:
892891
mutex_unlock(&q->sysfs_dir_lock);
893892

0 commit comments

Comments
 (0)