projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0035893
)
block: Remove unnecessary variable assignment
author
GuoYong Zheng
<zhenggy@chinatelecom.cn>
Mon, 17 Jan 2022 10:22:37 +0000
(18:22 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 17 Jan 2022 14:24:04 +0000
(07:24 -0700)
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>
block/blk-sysfs.c
patch
|
blob
|
history
diff --git
a/block/blk-sysfs.c
b/block/blk-sysfs.c
index
e20eadf
..
bed4a2f
100644
(file)
--- 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);