mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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:
parent
8c54803b98
commit
ee1e03598f
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user