Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1422737ybz; Sat, 18 Apr 2020 00:16:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLpggh8nyDkUrlejPLlnTk49GjeVAuYEjZ5rCdD4EcXoeseMHoV3adajbZhCWKT5z5Dbh6O X-Received: by 2002:a17:906:2511:: with SMTP id i17mr6895414ejb.165.1587194192892; Sat, 18 Apr 2020 00:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587194192; cv=none; d=google.com; s=arc-20160816; b=EUcZcrwq2rx/llpj38GezxSSB7X2ibinCuVDL8V28euTgVp9Xi1AqcljjqOnlXpkvv g7atKZXY/vX1SrhhaiaWb57QZ/mZEiAhJ9wb51BfHzB4eGRCQ7W+wFC4Snj0lcwiyYGu 8HHWuFwURnCX2ybyl0ND+sFnxIlJAc8dyJiUfjxI3fCiTWy4M9pGX2EEMdKvI9/Xagdy mshe2EEoiFw71mJI3A+fTAbJ8e1PguXnBvWtc6mCai04W9WI8ftJRQ6OM8YAAGGGrX6O DYRmchHfx2dSkNls5PtkvEeQLbrDzYCxY/e5e0FCpFZtEBOh8ePRogH65npBY/iPUayV IElQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9O0aopEBCTCXPKDGoPBM1d5DxPebLrpuZOmwI1ViU3o=; b=e07ivfp5DlyUzVJHU9pN/aOMQVBkMEJZFMj/bWl0bpljRiydVhDKCfrXC9qYS+nGx6 fsjA8vmxESu9AD5/QywDjqNw6cpRuaZxAP2HSCS4ZFiP4C7ooOso9y2VoPp5LOWZ+XQ6 y7HzA2ejVhfEZDOeXVw8MFf2fSNp2ee8fOkinp4Y5SJVekXCZBcRHtgsYyUiz0XKV/oD 8nHtVqRpz720j4pMZaYbaCqJYYtnZAWxPdIkflUzRZdZvTNYoV4dQsSxqr5UpirZBkvw +aieZDIuPMMOUZR2RMiMzz5giCRwURcV6itAe9Y1KpFfj/fjuA9A0fCXMvx5X0ADEkIE dN2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPlfhCuK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi9si16098631edb.478.2020.04.18.00.16.07; Sat, 18 Apr 2020 00:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPlfhCuK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725892AbgDRHM7 (ORCPT + 99 others); Sat, 18 Apr 2020 03:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgDRHM6 (ORCPT ); Sat, 18 Apr 2020 03:12:58 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3DDC061A0F for ; Sat, 18 Apr 2020 00:12:58 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id q16so3074715pje.1 for ; Sat, 18 Apr 2020 00:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9O0aopEBCTCXPKDGoPBM1d5DxPebLrpuZOmwI1ViU3o=; b=MPlfhCuKMdPN6iwOaMoNiLqFWiHzDyLpZekidDQ3S2s8nfg8lcoExi4mNEXiCILHsF WVKeT+UjynS9gCiho2r6P1agy/eepg2dweqpEudDsa+G+3nD/jv+H3iMPAv6iPZwJWua 9ppv2By5BIUqYldgqrKfgNkl6iGCEyBIWAnFmn5ylMiOI33pmId2kN+mI2VmMZtv5IFh h/KW/qeBO9r6d+xuSh9PQKNe40pkZtT6qHKMXNdSmz1xkaD6pjI+OgysQZuVbuOgpT3R uSeHHJAfY9M+njg1+MICXHUGV7dp3aA65dKHOSxVY0HO/HiS65f6E/osJDeVM/B4f6ch jkLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9O0aopEBCTCXPKDGoPBM1d5DxPebLrpuZOmwI1ViU3o=; b=SlSxbiR0nGP6EyamR4b/bkvPrrtNdH/pNraLGnt73MyxqNI12lrm5I8CqPAeHogHk6 DwLirwxe1BuWUyhcK9au3O9ma7dqWI5oVZIhEUNlTo5yR5bv+o0b/9bgIY4L8GBPMeUH 6U2VE/1YnaO4G4bUisQ8LktRaJxFn6EhUS31IevZwvgJW9Z58ma3Ti3sxtZbi41ciSMv 1TsZlrp4SzCSQSQ+OyxZXiD9VKMafIBFw0elT3OcInOldTB69gWy1Jkbk0l5LZ9Jg2HP EnSRKq5rIykM8I4zQpFfk0abLhr3zEqaEKJizsbQ8Vo9OQEi80vJTMITI4UQgZ0vqmuT RChg== X-Gm-Message-State: AGi0PuapvN4BZKJAGg+Ki0im9vRuJWY50bv5TdMpTj3LY9ILtGFUJ+Ef 8DHoo1M8W6cNxpFfx0Yw/ArcoQ== X-Received: by 2002:a17:90a:9b17:: with SMTP id f23mr8804210pjp.118.1587193977569; Sat, 18 Apr 2020 00:12:57 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id d8sm16157965pfd.159.2020.04.18.00.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 00:12:56 -0700 (PDT) Date: Sat, 18 Apr 2020 00:13:17 -0700 From: Bjorn Andersson To: Jason Yan Cc: agross@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, p.zabel@pengutronix.de, cang@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] scsi: ufs-qcom: remove unneeded variable 'ret' Message-ID: <20200418071317.GO20625@builder.lan> References: <20200418070625.11756-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200418070625.11756-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 18 Apr 00:06 PDT 2020, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/ufs/ufs-qcom.c:575:5-8: Unneeded variable: "ret". Return > "0" on line 590 > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Reviewed-by: Bjorn Andersson > --- > drivers/scsi/ufs/ufs-qcom.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c > index 19aa5c44e0da..701e9184adff 100644 > --- a/drivers/scsi/ufs/ufs-qcom.c > +++ b/drivers/scsi/ufs/ufs-qcom.c > @@ -572,7 +572,6 @@ static int ufs_qcom_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) > { > struct ufs_qcom_host *host = ufshcd_get_variant(hba); > struct phy *phy = host->generic_phy; > - int ret = 0; > > if (ufs_qcom_is_link_off(hba)) { > /* > @@ -587,7 +586,7 @@ static int ufs_qcom_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) > ufs_qcom_disable_lane_clks(host); > } > > - return ret; > + return 0; > } > > static int ufs_qcom_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) > -- > 2.21.1 >