Re: [PATCH v2 6/9] usb: host: xhci-plat: delete the unnecessary code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24.5.2020 2.23, Peter Chen wrote:
> The if {} condition is duplicated with outer if {} condition.
> 
> Signed-off-by: Peter Chen <peter.chen@xxxxxxx>

Acked-by: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>

> ---
>  drivers/usb/host/xhci-plat.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index 51e20464fe0a..03d6bbe51919 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -283,8 +283,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
>  		struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd);
>  
>  		/* Just copy data for now */
> -		if (priv_match)
> -			*priv = *priv_match;
> +		*priv = *priv_match;
>  	}
>  
>  	device_wakeup_enable(hcd->self.controller);
> 




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux