diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2019-06-19 18:01:48 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-20 05:20:02 -0400 |
commit | ee1e03598f7961f471367e075edcdbd8492a2239 (patch) | |
tree | b0dc1af8227cd6e015c4ee9807117c9419198e34 /block | |
parent | 8c54803b98d5907b45fe98270be5ed4fbc7e4c4c (diff) |
block: get rid of redundant else
This is a pure code cleanup patch and doesn't change any functionality.
This removes the redundant else in the code which is not needed since
we are returning from function anyway.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq-debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 5d940ff124a5..84394835e2b0 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c | |||
@@ -779,8 +779,8 @@ static int blk_mq_debugfs_release(struct inode *inode, struct file *file) | |||
779 | 779 | ||
780 | if (attr->show) | 780 | if (attr->show) |
781 | return single_release(inode, file); | 781 | return single_release(inode, file); |
782 | else | 782 | |
783 | return seq_release(inode, file); | 783 | return seq_release(inode, file); |
784 | } | 784 | } |
785 | 785 | ||
786 | static const struct file_operations blk_mq_debugfs_fops = { | 786 | static const struct file_operations blk_mq_debugfs_fops = { |