block: get rid of redundant else
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 19 Jun 2019 22:01:48 +0000 (15:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 09:20:02 +0000 (03:20 -0600)
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>
block/blk-mq-debugfs.c

index 5d940ff124a5a076faa008e52d1626599a7bb3fc..84394835e2b0f5e9546a9e055d0e8e4a94efefa8 100644 (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 = {