From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2CD3C433DB for ; Sun, 7 Mar 2021 15:56:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9931F650F7 for ; Sun, 7 Mar 2021 15:56:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232282AbhCGPzn convert rfc822-to-8bit (ORCPT ); Sun, 7 Mar 2021 10:55:43 -0500 Received: from aposti.net ([89.234.176.197]:34186 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbhCGPzL (ORCPT ); Sun, 7 Mar 2021 10:55:11 -0500 Date: Sun, 07 Mar 2021 15:54:57 +0000 From: Paul Cercueil Subject: Re: [PATCH -next] phy: ingenic: Fix a typo in ingenic_usb_phy_probe() To: 'Wei Yongjun Cc: Kishon Vijay Abraham I , Vinod Koul , =?UTF-8?b?5ZGo55Cw5p2w?= , =?UTF-8?b?5ryG6bmP5oyv?= , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Hulk Robot Message-Id: In-Reply-To: <20210305034933.3240914-1-weiyongjun1@huawei.com> References: <20210305034933.3240914-1-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le ven. 5 mars 2021 à 3:49, 'Wei Yongjun a écrit : > From: Wei Yongjun > > Fix the return value check typo which testing the wrong variable > in ingenic_usb_phy_probe(). > > Fixes: 31de313dfdcf ("PHY: Ingenic: Add USB PHY driver using generic > PHY framework.") > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun Acked-by: Paul Cercueil Cheers, -Paul > --- > drivers/phy/ingenic/phy-ingenic-usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c > b/drivers/phy/ingenic/phy-ingenic-usb.c > index ea127b177f46..28c28d816484 100644 > --- a/drivers/phy/ingenic/phy-ingenic-usb.c > +++ b/drivers/phy/ingenic/phy-ingenic-usb.c > @@ -352,8 +352,8 @@ static int ingenic_usb_phy_probe(struct > platform_device *pdev) > } > > priv->phy = devm_phy_create(dev, NULL, &ingenic_usb_phy_ops); > - if (IS_ERR(priv)) > - return PTR_ERR(priv); > + if (IS_ERR(priv->phy)) > + return PTR_ERR(priv->phy); > > phy_set_drvdata(priv->phy, priv); > >