From: Chaitanya Kulkarni Date: Wed, 19 Jun 2019 22:01:48 +0000 (-0700) Subject: block: get rid of redundant else X-Git-Tag: v5.4-rc1~640^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee1e03598f7961f471367e075edcdbd8492a2239;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 5d940ff..8439483 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) 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 = {