Skip to content

Commit

Permalink
usb: host: xhci-plat: delete the unnecessary code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Chen authored and Greg Kroah-Hartman committed Sep 20, 2020
1 parent 5e0e54f commit 93cb8f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/host/xhci-plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93cb8f1

Please sign in to comment.