From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: 15 May 2019 17:26:07 +0900 Message-ID: <871s106ssi.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: Re: [PATCH v3 11/15] usb: renesas_usbhs: Add support for RZ/A2 In-Reply-To: <20190514145605.19112-12-chris.brandt@renesas.com> References: <20190514145605.19112-1-chris.brandt@renesas.com> <20190514145605.19112-12-chris.brandt@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII To: Chris Brandt Cc: Rob Herring , Mark Rutland , Greg Kroah-Hartman , Simon Horman , Yoshihiro Shimoda , Geert Uytterhoeven , Sergei Shtylyov , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org List-ID: Hi Chris > +static int usbhs_rza2_hardware_exit(struct platform_device *pdev) > +{ > + struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev); > + > + if (priv->phy) { > + phy_put(priv->phy); > + priv->phy = NULL; > + } > + > + return 0; > +} phy_put() will do nothing if priv->phy was NULL. We can remove if() here ? Thank you for your help !! Best regards --- Kuninori Morimoto