From patchwork Wed Jun 19 22:01:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 11005405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E77DC112C for ; Wed, 19 Jun 2019 22:01:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6597286AE for ; Wed, 19 Jun 2019 22:01:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C904F28782; Wed, 19 Jun 2019 22:01:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D739286AE for ; Wed, 19 Jun 2019 22:01:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbfFSWB6 (ORCPT ); Wed, 19 Jun 2019 18:01:58 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:3312 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfFSWB5 (ORCPT ); Wed, 19 Jun 2019 18:01:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1560981717; x=1592517717; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D9U2HPu6ZOTNILV65ybHX1iqiYPNs4JUq1wtjqsbBCM=; b=cErvzcsOZFhiIkH7HyVZBqvz63bLfyjDeN6rlw6ivp4M0xfsE5dlqLHl mw1AzIQ9/WESbb/lt2ytwyCQPDtat2NV+cWhpAA50XvnpSMgCiX2WZP2F V1eWtFrfNxkG4cDljCLMhE+o35pvto9vJmFsLDCjodk3YvgikoJWYNdDY DvOWjFxPCkRtiETm8N2RUPov5jidnQO1yohCxQ8awJt+JherHVWYT7bEj Dxx4ZAidgZXclFot2vQen5sXfbuJix1QMXZLo4VUenNpLds84Zjj0ft19 lHY5IBAuEohMj9mSXQn5rAYIcudWB9VaJDvwAWK3+FXxpiZZJk3vDgGYe g==; X-IronPort-AV: E=Sophos;i="5.63,394,1557158400"; d="scan'208";a="112236312" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2019 06:01:57 +0800 IronPort-SDR: XdUTPXU7q0kB08y9B4fh14WyOQOMhl1IEmHdnm+DNC61z7CWBY6udtKNtB89ljupVdhaKXfjOu AeApBHQvQDmNXb3AvSZDpBNEaMH3ok55Goce4URErMsR2pRumYeTfkCvsm5lV8cgzKUeN3V7qj IfUEqBilmzyYZfCsew1hNiuSYQpqn5U+b+7gF1u+YTjqMLuI0ZDhCdkiCV4cFUbeVCYZvmDBlQ 5jzvAlnWpRvBsC1mgDJphAglZeXLVpAE6LL0H7laW8+98jrQzr81UzNOtLlZsie5GpGW4sMtVM KSJ0OxTPLRC5ZCS3cy8n1D61 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 19 Jun 2019 15:01:24 -0700 IronPort-SDR: dg/SAC+dFuS87lYfjxH5qi+mXUBJ08wfWJAM/AMMHgIZQF+2iiu4q2QYpUGgCn8geILGAhw62x IfKMSOcGz8dWYam0lIAzmlIaOXyc/7AxWkiiOScWL+lzDQoCYeFmtAz4NVCm79T2OsctqWF8KW 3hYS7VFZvVEfTqYM5RyMeztqZsJPlSFNyLZ4HLj16KMPzLMkMq6iXMuOKKx/Y7XvjD86LcnmoU WZX0KDMZFAzyyW+7Gj1QuE+kksF6umNFLCDZsb24vKwICtkbc2KpGED5C730gQj3hEczPthS/d z48= Received: from cmercuryqemu.hgst.com ([10.202.65.32]) by uls-op-cesaip01.wdc.com with ESMTP; 19 Jun 2019 15:01:57 -0700 From: Chaitanya Kulkarni To: linux-block@vger.kernel.org Cc: Chaitanya Kulkarni Subject: [PATCH 1/3] block: get rid of redundant else Date: Wed, 19 Jun 2019 15:01:48 -0700 Message-Id: <20190619220150.6271-2-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190619220150.6271-1-chaitanya.kulkarni@wdc.com> References: <20190619220150.6271-1-chaitanya.kulkarni@wdc.com> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- block/blk-mq-debugfs.c | 4 ++-- 1 file 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) 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 = {