usb: host: xhci-plat: delete the unnecessary code
The if {} condition is duplicated with outer if {} condition. Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20200918131752.16488-4-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e0e54ff89
commit
93cb8f13be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user