Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1709144pxb; Thu, 4 Mar 2021 19:45:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFedLROO0+v9FpwJDnEiXz0pIndcxtYSxpphmSdYlZLUFHoc9MNH4Pz8NNz/P9gRj5XMt4 X-Received: by 2002:a17:907:76b6:: with SMTP id jw22mr558645ejc.11.1614915936595; Thu, 04 Mar 2021 19:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614915936; cv=none; d=google.com; s=arc-20160816; b=fUGPKSPNGyEuz4hYo+bmvthMkXEgywvCv3I+pfWqtzlr+fXIctM7c+NRInmFhIgqIf 1ZqmZZ/JrocTrxf/ZJ0mPBAGOuj1FDMRz/IOdr1/GjVdopYmvpU4824Wcve41/0SpLg0 SCh2LtwrWKJ5pwvg/IPnYbkmuqPhwqTBZ64Ahj+cP9QMohDiT3VNpcUVGx7jMExoIcCD jfEkmOXMOHDMIz+h3wWZdctDYTo45FNgIvj8F3VUCxozi2oIBCHUNB4bXOGngx5g9/4m 1bDaFYDC89w+V2NqF5cRFHNB27CAsC9u7a6oG0dlXQZu+qseHlFfO2t4rc8losAkz1a4 GMqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Hrxls6mbvRE3RYlDVJ3p6rht1LjzXLjC38WGUa5KyKA=; b=tRNB8Y6HpmEpvo9Os1hhicVJjWxlmMxBJUA8IE05dI3tMqj0ptkKiRhq2cxGKADZAf otpgRGpixti6SryF/ELYIX7QJHyEo5bdF/duCKftAw0Neg+vArbDRKQg4+YRYz6EZwKh slkkCo9i/iEckIs6kAeifxkog/n4r1AONOdCy1PD1PdjlqPr/MBJJcdRQsfvAJ85ZGHA ZMDKZI8/lJPiFGi/xTh0UIJl2atinD6DI+BwSvixmgSKFW6jupQhGtbv+dP/xAZKe757 nhbJxGbuPZFT3OJOT6VpwC+wVmGVhe1ZbYMo7P58AU8JOeQ3XwQa3IKmmY6lVxLvzGQc yjqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he14si659468ejc.274.2021.03.04.19.45.13; Thu, 04 Mar 2021 19:45:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229503AbhCEDku (ORCPT + 99 others); Thu, 4 Mar 2021 22:40:50 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:13862 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhCEDkt (ORCPT ); Thu, 4 Mar 2021 22:40:49 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DsD475xxtz8srs; Fri, 5 Mar 2021 11:39:03 +0800 (CST) Received: from localhost.localdomain (10.175.102.38) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Mar 2021 11:40:37 +0800 From: 'Wei Yongjun To: , Kishon Vijay Abraham I , "Vinod Koul" , Paul Cercueil , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= , =?UTF-8?q?=E6=BC=86=E9=B9=8F=E6=8C=AF=20=28Qi=20Pengzhen=29?= CC: , , , Hulk Robot Subject: [PATCH -next] phy: ingenic: Fix a typo in ingenic_usb_phy_probe() Date: Fri, 5 Mar 2021 03:49:33 +0000 Message-ID: <20210305034933.3240914-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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);