projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0e54f
)
usb: host: xhci-plat: delete the unnecessary code
author
Peter Chen
<peter.chen@nxp.com>
Fri, 18 Sep 2020 13:17:45 +0000
(16:17 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 20 Sep 2020 14:18:00 +0000
(16:18 +0200)
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>
drivers/usb/host/xhci-plat.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-plat.c
b/drivers/usb/host/xhci-plat.c
index c3ce4d762adff39d96b8469d6e9dcdb6e4357b3d..07ca000a0084dcada3fc437af511e332095330a1 100644
(file)
--- 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);