Skip to content

Commit

Permalink
block: Remove unnecessary variable assignment
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
GuoYong Zheng authored and axboe committed Jan 17, 2022
1 parent 0035893 commit e6a2e51
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e6a2e51

Please sign in to comment.