summaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
authorGuoYong Zheng <zhenggy@chinatelecom.cn>2022-01-17 11:22:37 +0100
committerJens Axboe <axboe@kernel.dk>2022-01-17 15:24:04 +0100
commite6a2e5116e07ce5acc8698785c29e9e47f010fd5 (patch)
treee4500b41c269ca1c2f1aeb3159ca7093bb022fcd /block/blk-sysfs.c
parentbrd: remove brd_devices_mutex mutex (diff)
downloadlinux-e6a2e5116e07ce5acc8698785c29e9e47f010fd5.tar.xz
linux-e6a2e5116e07ce5acc8698785c29e9e47f010fd5.zip
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>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r--block/blk-sysfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index e20eadfcf5c8..bed4a2facd65 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -887,7 +887,6 @@ int blk_register_queue(struct gendisk *disk)
kobject_uevent(&q->elevator->kobj, KOBJ_ADD);
mutex_unlock(&q->sysfs_lock);
- ret = 0;
unlock:
mutex_unlock(&q->sysfs_dir_lock);