Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2426868pxj; Mon, 31 May 2021 01:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWhhnkjpomLxilcd8NjRBHNtDJtGwgJP8iM57cQJM7HzuNSdIToyvw/+xjdqBHaqO8OZNp X-Received: by 2002:a92:d18a:: with SMTP id z10mr16136734ilz.70.1622450564400; Mon, 31 May 2021 01:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622450564; cv=none; d=google.com; s=arc-20160816; b=F9BzQFyFn/thQViX3XLT6DN+J+5GUc5AT00y4bnHVO3YY7Yxq7Hg2nGobDOC9fULdw +NZW09/pG+a58PgTZJbmXgsHKaiQT4+lBdFSNJzGyOFfzvNX20uoYnwVExlRXfqRraZL E4hYo02rwW1YuU9C7AnC8q8EG5p2gZ2T2qUQhWvyOXKgoD+Geq9OOXrK1vhqgLrQW6kS Tqjf4O9hwGSxp5pTyntZFgpJARuQKa373ARCd1ywXWvdoMOZd3KNDEkFacN5gdsj4ULT eK5crvz/vZFtigsHHzi5C8hi2EKL+Rq9JlKp6xLpURAFMnuiunkfkeYjDm107zziFunF zk9g== 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=yCNvl8XEls9yKrmEykUrbdUmB7unLmfynXnAYVhYA+c=; b=C1Bi0MtK4ti33gPW2gPxsLsYSVdrYvx7KALyOfDJvHzcBvE1kP1bXXr6fIk/kS+CYc Ex5fIs+sb6qtB5ieyQ0Qv52LKLEQFGa/pDv1dxJPxbmoh7lYQanRNXDAt4OPFPoi8Sfj BeagNxYV2c6BcshffEv2BYNVsqtlh3gOINsX+NqZ0kigAkj9lnZpcWNBo8JceOQypgEU a9byb/4Sil1v3t/DE39JjrDhZoFA46yojp9BI65l40iYCfn/cdUGrV5gxyYmDQMJNcMq lfoeXTzExX9G2ExLsze85qkD0iBvNDKsxBC4xubwQcs9yDPEBd/W22P+cMmd9gXo9uhY 5FVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IMX+1p1X; 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 i5si13675677jaj.101.2021.05.31.01.42.31; Mon, 31 May 2021 01:42:44 -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=@kernel.org header.s=k20201202 header.b=IMX+1p1X; 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 S231184AbhEaImi (ORCPT + 99 others); Mon, 31 May 2021 04:42:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:42756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbhEaIlm (ORCPT ); Mon, 31 May 2021 04:41:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 30C1B6023E; Mon, 31 May 2021 08:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622450403; bh=hIo9igXETrqt8JGupXund+T2mtkuw9aDgnbLO9HhyN0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IMX+1p1XnD68tYgotvN1s1ACQ+Y/xvPR0Mo27Kdc6p0Ra+3bsuyiEihZzV0Qy/21O PBrNdp+BvYan4Tfq4071JGbwLuvxb42hGih5x62SVvzc28BkYC7QHpOqUZEvkNkdS+ BY9Fa9OvmW5MGQqnwAwSeP1HUjj7XWddbQ4lMeLbYAEedgE4yPBwqludlILxELu4dN ZFu4FJ3uJ/Nwi/3BEYOau+jNT3GjlUfOr1Uk8Mc+pEC1FVE+y/RPmiBsk1K0IOxCi3 0K28aJxa0bNRvZXNqaT5SPcAk44uECTcR29sbfPy5M1EM7tlFzBwuI9iKnkifjcqka i5O/v3PLi0g6A== Date: Mon, 31 May 2021 14:09:59 +0530 From: Vinod Koul To: Yang Li Cc: kishon@ti.com, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: ti: Fix an error code in wiz_probe() Message-ID: References: <1621939832-65535-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1621939832-65535-1-git-send-email-yang.lee@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-05-21, 18:50, Yang Li wrote: > When the code execute this if statement, the value of ret is 0. > However, we can see from the dev_err() log that the value of > ret should be -EINVAL. > > Clean up smatch warning: > > drivers/phy/ti/phy-j721e-wiz.c:1216 wiz_probe() warn: missing error code > 'ret' Single line is fine for this > > Reported-by: Abaci Robot > Fixes: 'commit c9f9eba06629 ("phy: ti: j721e-wiz: Manage > typec-gpio-dir")' Please dont split to two lines for fixes tag > Signed-off-by: Yang Li I have fixed while applying so Applied, thanks > --- > drivers/phy/ti/phy-j721e-wiz.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c > index 9eb6d37..126f5b8 100644 > --- a/drivers/phy/ti/phy-j721e-wiz.c > +++ b/drivers/phy/ti/phy-j721e-wiz.c > @@ -1212,6 +1212,7 @@ static int wiz_probe(struct platform_device *pdev) > > if (wiz->typec_dir_delay < WIZ_TYPEC_DIR_DEBOUNCE_MIN || > wiz->typec_dir_delay > WIZ_TYPEC_DIR_DEBOUNCE_MAX) { > + ret = -EINVAL; > dev_err(dev, "Invalid typec-dir-debounce property\n"); > goto err_addr_to_resource; > } > -- > 1.8.3.1 -- ~Vinod