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>
This commit is contained in:
Chaitanya Kulkarni 2019-06-19 15:01:48 -07:00 committed by Jens Axboe
parent 8c54803b98
commit ee1e03598f

View File

@ -779,8 +779,8 @@ static int blk_mq_debugfs_release(struct inode *inode, struct file *file)
if (attr->show)
return single_release(inode, file);
else
return seq_release(inode, file);
return seq_release(inode, file);
}
static const struct file_operations blk_mq_debugfs_fops = {