Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbdLFTRx (ORCPT ); Wed, 6 Dec 2017 14:17:53 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:41322 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566AbdLFTRe (ORCPT ); Wed, 6 Dec 2017 14:17:34 -0500 X-IronPort-AV: E=Sophos;i="5.45,369,1508803200"; d="scan'208";a="697511598" From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org, Lai Siyao , Ernestas Kulik , Aastha Gupta , Greg Kroah-Hartman , James Simmons , Andreas Dilger , Oleg Drokin , Luis de Bethencourt Subject: [PATCH 3/3] staging: lustre: llite: Remove redundant else keyword Date: Wed, 6 Dec 2017 19:17:00 +0000 Message-Id: <20171206191700.26532-3-luisbg@kernel.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171206191700.26532-1-luisbg@kernel.org> References: <20171206191700.26532-1-luisbg@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 22 There is no need to use 'else' if in main branch 'return' is present. Signed-off-by: Luis de Bethencourt --- drivers/staging/lustre/lustre/llite/vvp_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/llite/vvp_io.c b/drivers/staging/lustre/lustre/llite/vvp_io.c index bfae98e82d6f..e7a4778e02e4 100644 --- a/drivers/staging/lustre/lustre/llite/vvp_io.c +++ b/drivers/staging/lustre/lustre/llite/vvp_io.c @@ -699,7 +699,7 @@ static int vvp_io_read_start(const struct lu_env *env, result = vvp_prep_size(env, obj, io, pos, tot, &exceed); if (result != 0) return result; - else if (exceed != 0) + if (exceed != 0) goto out; LU_OBJECT_HEADER(D_INODE, env, &obj->co_lu, -- 2.15.1