Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2912353pxb; Sun, 15 Nov 2020 23:52:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyar+cMWvC+VJhJ/9mRM00diLrp9NKfCol8JyJdvdYJFjEI3b3qqi0URUSqppDptqyNO1pE X-Received: by 2002:a17:906:2818:: with SMTP id r24mr14054885ejc.100.1605513144951; Sun, 15 Nov 2020 23:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605513144; cv=none; d=google.com; s=arc-20160816; b=ZZ7bXQRRHY56KnNUvaJlTdwT2Ga6BozX5Ym8yZoH5Arvh9GB9C3EIdsCyJUAm6konE +h6sPv2yLTLO/vQlMTI8g7pMbgFHkMGZAlASlCoGWOCL5Hx5InAOps7UtwDDQfw3ZIni G0HuW6+6UzKFsEJPHJApsCVqrv4nCDiCa/l/5HYUKDxFvDpeXqGFikphn9Ybz+6boJnl y0PP8OxWsEIXDRHd1dHvahf/BivKJuA+0BbzSKPd/2/jVUEwjB+0qEi/rigAGdYYKm8B VFa/JL7yGgNPPWdsxyMLcJRCOGSd+Axvd03k9dc93h8XDxnh4q/VnYyae3GUz7c06Xz6 ZxDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aLSe85ZN+Cx5z+70iBRHR061gpFFDkAPKrP9A6STyQw=; b=CHIRmjyDIZBYQcHCaW18+k+JzE3zYYegynHHql/AiUMoamhcWrQ2/ssRkW3SHhQlcs cT/WB4D1Iza1NxWdM+lDsdetWANJTHaeuTIEW+6XMuYPSzB4CvhivHAuzWNwN4YRlQAY TPVEXbfuC9mg+UYQcoz/6kY2/ptNGD2L3fDwuMtrZmRxM5ZKcvU/I7T3pK5nMf59ZyPr TTPIUh0q/o8sT0vKkvrOqQTqs251AUj72QtWEZJNioK6k4up+N601j9x5pCWhReOq3f3 URKMLoyHjs9Asq0fWqsIN63MXd6ifZA4Qez9P+cN8sjdQDEdMJFxpm1WKB2EVM6Aoi/k DeYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="B8/I2oc8"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si13489588eji.711.2020.11.15.23.52.02; Sun, 15 Nov 2020 23:52:24 -0800 (PST) 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=@kernel.org header.s=default header.b="B8/I2oc8"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727711AbgKPHsk (ORCPT + 99 others); Mon, 16 Nov 2020 02:48:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:47702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgKPHsk (ORCPT ); Mon, 16 Nov 2020 02:48:40 -0500 Received: from localhost (unknown [122.171.203.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC70A2225E; Mon, 16 Nov 2020 07:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605512919; bh=orvkKSLE3qDSBwWd3ifg4y+FDRcfc/HXOtvw1V1r1Sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B8/I2oc8lNFmKnMaVvVDwVfMYGoiEFJX/5balP2X9PRKAhX7zRdHpylefGXIUs7gD 8yjLvdPJgeV5e+TJWJnPdW37B7+usdWjPH73z4kopT5kgDFyrNYMYZZD1IsUsFRvQF 2szwO46TSUfW6m8lm1MVKif7wkD+ld/zxx0BIJrY= Date: Mon, 16 Nov 2020 13:18:35 +0530 From: Vinod Koul To: xiakaixu1987@gmail.com Cc: kishon@ti.com, linux-kernel@vger.kernel.org, Kaixu Xia Subject: Re: [PATCH] phy: mapphone-mdm6600: remove the unused variable error value assignment Message-ID: <20201116074835.GO7499@vkoul-mobl> References: <1605256482-5101-1-git-send-email-kaixuxia@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1605256482-5101-1-git-send-email-kaixuxia@tencent.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-11-20, 16:34, xiakaixu1987@gmail.com wrote: > From: Kaixu Xia > > The value of variable error is overwritten by the following call > devm_request_threaded_irq() in phy_mdm6600_device_power_on(), so here the > value assignment is useless. Remove it. > > Reported-by: Tosk Robot > Signed-off-by: Kaixu Xia > --- > drivers/phy/motorola/phy-mapphone-mdm6600.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/phy/motorola/phy-mapphone-mdm6600.c b/drivers/phy/motorola/phy-mapphone-mdm6600.c > index 5172971..24ab848 100644 > --- a/drivers/phy/motorola/phy-mapphone-mdm6600.c > +++ b/drivers/phy/motorola/phy-mapphone-mdm6600.c > @@ -421,7 +421,6 @@ static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata) > dev_info(ddata->dev, "Powered up OK\n"); > } else { > ddata->enabled = false; > - error = -ETIMEDOUT; > dev_err(ddata->dev, "Timed out powering up\n"); Maybe the right fix is adding return error here..? -- ~Vinod