[11/11] USB: dwc3: clean up probe declarations

Message ID 20230404072524.19014-12-johan+linaro@kernel.org
State New
Headers
Series USB: dwc3: error handling fixes and cleanups |

Commit Message

Johan Hovold April 4, 2023, 7:25 a.m. UTC
  Clean up the probe variable declarations by removing the stray newlines.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
 drivers/usb/dwc3/core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
  

Comments

Thinh Nguyen April 7, 2023, 12:46 a.m. UTC | #1
On Tue, Apr 04, 2023, Johan Hovold wrote:
> Clean up the probe variable declarations by removing the stray newlines.
> 
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
>  drivers/usb/dwc3/core.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index 08432e109a3f..24d395b8868c 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -1754,12 +1754,10 @@ static int dwc3_probe(struct platform_device *pdev)
>  {
>  	struct device		*dev = &pdev->dev;
>  	struct resource		*res, dwc_res;
> +	void __iomem		*regs;
>  	struct dwc3		*dwc;
> -
>  	int			ret;
>  
> -	void __iomem		*regs;
> -
>  	dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL);
>  	if (!dwc)
>  		return -ENOMEM;
> -- 
> 2.39.2
> 

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>

Thanks,
Thinh
  

Patch

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 08432e109a3f..24d395b8868c 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1754,12 +1754,10 @@  static int dwc3_probe(struct platform_device *pdev)
 {
 	struct device		*dev = &pdev->dev;
 	struct resource		*res, dwc_res;
+	void __iomem		*regs;
 	struct dwc3		*dwc;
-
 	int			ret;
 
-	void __iomem		*regs;
-
 	dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL);
 	if (!dwc)
 		return -ENOMEM;