Commit 93cb8f13 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: host: xhci-plat: delete the unnecessary code

The if {} condition is duplicated with outer if {} condition.
Reviewed-by: default avatarJun Li <jun.li@nxp.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200918131752.16488-4-mathias.nyman@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e0e54ff
...@@ -283,8 +283,7 @@ static int xhci_plat_probe(struct platform_device *pdev) ...@@ -283,8 +283,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd);
/* Just copy data for now */ /* Just copy data for now */
if (priv_match) *priv = *priv_match;
*priv = *priv_match;
} }
device_wakeup_enable(hcd->self.controller); device_wakeup_enable(hcd->self.controller);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment