Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7076159pxv; Fri, 30 Jul 2021 09:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw98KGqZ8kfX4WeFqSA9cNVmhQAbM61HptjlnxC5dC2Og9vhiiTDfCbS2QHj3rQNNd2GdVk X-Received: by 2002:a17:906:1299:: with SMTP id k25mr3302931ejb.139.1627662428265; Fri, 30 Jul 2021 09:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627662428; cv=none; d=google.com; s=arc-20160816; b=X7iMKZKCzsNq6R06cVCWRTnK2OPtMUCVQ57R4xZ1UBKZxTcjSttoxhNKXEBGBm2VAC 4jbAWpO1LwuPGAesRBxnLyFtO6Wci8hGQXJOTjf02j0rVphi0WaBBmeRU5zqjYOHIxqB s+X2LhMwZSPFRD5F6apFRdMRY0h8iHQDH4uqq6erVsEz+zMleMe8hfuCOAAgWHyrBTbY knyUSRV/7t6T6w8P7b9TYVgXwtIQ6PELVCFItm0l55XYyQbpuvzH7EZy5gHXT+vfJsqo NcaFqQbwV4AM+Gx8YEAwvji85flSG9dRipyEahoMK0wUoB9q7eIZ1FJqmbRWFDym8B5/ iFKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YUCrQY+/0aYEfxTA8l8l50iyZix92CoG/S1jS4DWnPE=; b=q/cAdGWPXR5sDKyCp6SbiPz8h4CB3TAuqJ2VBmLokg6L0AFJER2IPjcdEC1tqhQ/VF R8fzgaN+xyDSc8jyfVmqbhwOp8OCIUYZLJIvSsNEjAqr7CO0nc17Mr0hHVKKV61T2aTu 007jPwYYZBs5Z/BR0ooGl4QEuMJtKCZe/YZm7oF+/pW8shm44zvlb09Pq+UAEqrW3eP4 6S+dYFtJtLy7+ZMoYpsf0WmJWQWsoS/Mi5oVK5heZrfeBewGu0e3TT3VuWf4i556fN2z ftQIGulQC8ZudxBwyXh62t2yzFsm6bcU1YlYRuQOrzmPiddVBZqJ/kpq3HvaQF6yvEMt aeuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oiGzBHlg; 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 j21si2031890eja.172.2021.07.30.09.26.43; Fri, 30 Jul 2021 09:27:08 -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=oiGzBHlg; 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 S229707AbhG3QYs (ORCPT + 99 others); Fri, 30 Jul 2021 12:24:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:52928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbhG3QYs (ORCPT ); Fri, 30 Jul 2021 12:24:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 39D7A61052; Fri, 30 Jul 2021 16:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627662283; bh=rJGnm55O1tNTXXwwxOhfbNirfLkXYq7zue02n7Tdz6g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oiGzBHlg862uFecdCPxiopLytEgtT9H1q/AcThot49jQjIX0/d5bVk+dLn37KqRGH BEJyH+6mdVrVF0tRLmWiO7o1PbM8jL0YVqZBN0Q4rgb8dRbSi6L1bRLPH1ocjzoirT cp4r77MxFGSCqexTnykNH+UpxKj1SWzfg2c9j4wGfiHUB1Zsgm0+hrqZHFv/k3w0EC brPZJ9F45MuY4VagEY4q4F5W3wJwcH4JZaEQn+s4lzkoQYAkZNpNUCoRGdaKecfPhc mB7/zX7jbSUiVl6llFHL6nxGTUpZIzevCYu5z12RyOwZTDTUa7hkbcCp+FiAIJlPj0 rjsgnSxSRyVKg== Received: by mail-ed1-f49.google.com with SMTP id p21so13939817edi.9; Fri, 30 Jul 2021 09:24:43 -0700 (PDT) X-Gm-Message-State: AOAM533ZtSQ8DHD9bHr7ylSgjQjBQVoiJlz9XUWiKEgFFeEfINwQOhuf O9j3XOYrDDpe1M/PaXPhYPMOnfVzgKSRaS6i2Q== X-Received: by 2002:a50:d71e:: with SMTP id t30mr3917906edi.72.1627662281812; Fri, 30 Jul 2021 09:24:41 -0700 (PDT) MIME-Version: 1.0 References: <1627459111-2907-1-git-send-email-chunfeng.yun@mediatek.com> <1627459111-2907-8-git-send-email-chunfeng.yun@mediatek.com> In-Reply-To: <1627459111-2907-8-git-send-email-chunfeng.yun@mediatek.com> From: Chun-Kuang Hu Date: Sat, 31 Jul 2021 00:24:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 8/9] phy: phy-mtk-mipi-dsi: remove dummy assignment of error number To: Chunfeng Yun Cc: Vinod Koul , Rob Herring , Chun-Kuang Hu , Kishon Vijay Abraham I , Philipp Zabel , Matthias Brugger , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-phy@lists.infradead.org, DTML , linux-kernel , DRI Development , Eddie Hung Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Chunfeng: Chunfeng Yun =E6=96=BC 2021=E5=B9=B47=E6=9C=882= 8=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=883:59=E5=AF=AB=E9=81=93=EF= =BC=9A > > Return the error number directly without assignment Acked-by: Chun-Kuang Hu > > Signed-off-by: Chunfeng Yun > --- > drivers/phy/mediatek/phy-mtk-mipi-dsi.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c b/drivers/phy/mediat= ek/phy-mtk-mipi-dsi.c > index 01cf31633019..61c942fbf4a1 100644 > --- a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c > +++ b/drivers/phy/mediatek/phy-mtk-mipi-dsi.c > @@ -203,10 +203,8 @@ static int mtk_mipi_tx_probe(struct platform_device = *pdev) > phy_set_drvdata(phy, mipi_tx); > > phy_provider =3D devm_of_phy_provider_register(dev, of_phy_simple= _xlate); > - if (IS_ERR(phy_provider)) { > - ret =3D PTR_ERR(phy_provider); > - return ret; > - } > + if (IS_ERR(phy_provider)) > + return PTR_ERR(phy_provider); > > mipi_tx->dev =3D dev; > > -- > 2.18.0 >