summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2020-09-18 16:17:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-20 16:18:00 +0200
commit93cb8f13be872bc2895a97a42a666201e68b2a1d (patch)
tree12f71ad34c86d3277a04f46bbd24f31c6d2c5e49
parent5e0e54ff89248776739bdf08e5bf6c64f2ac4185 (diff)
downloadlinux-93cb8f13be872bc2895a97a42a666201e68b2a1d.tar.bz2
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>
-rw-r--r--drivers/usb/host/xhci-plat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index c3ce4d762adf..07ca000a0084 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);