projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3261a
)
usb: dwc3: debugfs: remove unnecessary | operator
author
Roger Quadros
<rogerq@ti.com>
Tue, 4 Apr 2017 08:27:57 +0000
(11:27 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:30 +0000
(10:58 +0300)
Each role is mutually exclusive, the | operator is unnecessary. Remove
it.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/debugfs.c
b/drivers/usb/dwc3/debugfs.c
index b53ca3b0171a8dc32229d81695497dffe41b4c94..e72f2634e493bddde963f4cd9d0ecf9d3b63516e 100644
(file)
--- a/
drivers/usb/dwc3/debugfs.c
+++ b/
drivers/usb/dwc3/debugfs.c
@@
-327,13
+327,13
@@
static ssize_t dwc3_mode_write(struct file *file,
return -EFAULT;
if (!strncmp(buf, "host", 4))
- mode
|
= DWC3_GCTL_PRTCAP_HOST;
+ mode = DWC3_GCTL_PRTCAP_HOST;
if (!strncmp(buf, "device", 6))
- mode
|
= DWC3_GCTL_PRTCAP_DEVICE;
+ mode = DWC3_GCTL_PRTCAP_DEVICE;
if (!strncmp(buf, "otg", 3))
- mode
|
= DWC3_GCTL_PRTCAP_OTG;
+ mode = DWC3_GCTL_PRTCAP_OTG;
if (mode) {
spin_lock_irqsave(&dwc->lock, flags);