Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp44442rdb; Wed, 20 Dec 2023 03:34:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHw4588TulWp1S9heQeL4yvZQJcLGgKqKQc6Rl2EulmF1RiiT/JkQovKuI7VzW76kjWXMTm X-Received: by 2002:a05:6830:22c3:b0:6db:a9dc:f34c with SMTP id q3-20020a05683022c300b006dba9dcf34cmr1156055otc.39.1703072057495; Wed, 20 Dec 2023 03:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703072057; cv=none; d=google.com; s=arc-20160816; b=0+zyeBpGXNk7AYkh+sFPRp9OqRny90BtQ6O1iylpHg01tp9MoW8jkn8iHP/ydBrZ8R zqLRg4s02Ql5zHbgmp397xOpgPbIy8CLQUhTJVfuJC+Vwbp+WJUIUlqc0Kr0HlGrBwwZ xRq0uPfL0pJqjhcx02+J6ZSRmrks+trf8dAgmsuWROnvQMN3J04upY8E4EIzeVqTYBU3 n6GhI+E5HGehLCXn+Sn8fqQD9Rc5PNviINHmesJaW7f4zYAfQONxZBXnaXMmOtKqCS8l B9qOMs+UwH2vPmk/PxfmdIRXMGRNcV/NJ7W7xhCUwfjUCopd/ROYBxm2L4AY0n+RQsp+ 0Y3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VNH06u3q6xTkEa9TgPhaBSMcAnwb6sdz5GVZL2ly78c=; fh=JyvKRiwOQYX4ydDtx+Smq0Mde4YX6gHJqaTiYzG7UeA=; b=ouZVTZwq0sUJdQrTJNIKOUXZcI6BVadEdHC5u7QhgpItZLUHHlW+V/cBsoPAKG7vTq gMH1dTp+lrV1ufxUU7JW9YCcesGp8MxlqV/lW/Ocaz+iOeE2yX9C7PK63ZzYad9O6hy/ +4433ftkwPWiasjjCvLXGNLrnqzxVXW/9qlfFz3Co1EHuL22mmK6vtxMfoBrdb4vmt8W 1SQ+gq91Y0sUBTlqJ8RdcZ96oW8qdRZSowvfBt/uQeSE9wt4CzJLoxmwPnEufWQyc9GU Ul2mODP4/y24M/i2Ktz6CMq3puxALHGAKPYjXbkm0TdEsvWkX4+gP86nxFz4V2kKzuHs sysQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VlREs5F6; spf=pass (google.com: domain of linux-kernel+bounces-6828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cc24-20020a05622a411800b00421ba41b2b5si31192790qtb.192.2023.12.20.03.34.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:34:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VlREs5F6; spf=pass (google.com: domain of linux-kernel+bounces-6828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 198951C25C18 for ; Wed, 20 Dec 2023 11:34:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5FC621A1C; Wed, 20 Dec 2023 11:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VlREs5F6" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A3FE20DF3; Wed, 20 Dec 2023 11:34:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD941C433C9; Wed, 20 Dec 2023 11:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703072041; bh=RAXyl4ljakAiP1xrw3EqjOoDMXwJ4PyKKqT6SUzQ5HA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VlREs5F6Zd39xwtfPWVcwlaPWa/UsQGFUgyUrblbh5aicN1h/jnFsLs2G0hrzoL1G KZcBP9H/2iqypNfcsG9tykx34d3DQMzV/xuSwZOTqKlSfJxJ4zdRkdSlT217odhyQw NZIHuFYJgQhu8Ir6GhUDbTIhWrwUR6FIzL8Z3vvY2xvSnaCQYDEytHqDQb4X/hEmXK 3Tfu8zgPjlXwAK/Bh54i7XTSDLmVeVoS6Ffrf8W/79nC58Wh9yOWjsT2Eo/cdRyH4C ZsyrLxYMNi5z5DS53F3PFvWoDemeIk1VnnoVd8bcXpV6YWrwFVVsBWXX4MEa8hVgZW Gq02I2ewKV5/A== Date: Wed, 20 Dec 2023 17:03:44 +0530 From: Manivannan Sadhasivam To: Chanwoo Lee Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, grant.jung@samsung.com, jt77.jang@samsung.com, dh0421.hwang@samsung.com, sh043.lee@samsung.com Subject: Re: [PATCH] scsi: ufs: qcom: Remove unnecessary goto statement from ufs_qcom_config_esi function Message-ID: <20231220113344.GC3544@thinkpad> References: <20231219082740.27644-1-cw9316.lee@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231219082740.27644-1-cw9316.lee@samsung.com> On Tue, Dec 19, 2023 at 05:27:40PM +0900, Chanwoo Lee wrote: > From: ChanWoo Lee > > There is only one place where goto is used, > and it is unnecessary to check the ret value through 'goto out' > because the ret value is already true. > > Therefore, remove the goto statement and > integrate the '!ret' condition into the existing code. > > Signed-off-by: ChanWoo Lee Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/ufs/host/ufs-qcom.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 17e24270477d..8cf803806326 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1929,7 +1929,7 @@ static int ufs_qcom_config_esi(struct ufs_hba *hba) > ufs_qcom_write_msi_msg); > if (ret) { > dev_err(hba->dev, "Failed to request Platform MSI %d\n", ret); > - goto out; > + return ret; > } > > msi_lock_descs(hba->dev); > @@ -1964,11 +1964,8 @@ static int ufs_qcom_config_esi(struct ufs_hba *hba) > REG_UFS_CFG3); > } > ufshcd_mcq_enable_esi(hba); > - } > - > -out: > - if (!ret) > host->esi_enabled = true; > + } > > return ret; > } > -- > 2.29.0 > -- மணிவண்ணன் சதாசிவம்