* [PATCH] xhci: Remove redundant parentheses when checking for port reset.
@ 2024-11-18 16:25 李哲
0 siblings, 0 replies; only message in thread
From: 李哲 @ 2024-11-18 16:25 UTC (permalink / raw)
To: mathias.nyman, gregkh; +Cc: linux-usb, linux-kernel, 李哲
When checking if the port status has been reset,
no additional parentheses are needed
Signed-off-by: 李哲 <sensor1010@163.com>
---
drivers/usb/host/xhci-hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 8d774f19271e..6b494a2e8140 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -1690,7 +1690,7 @@ int xhci_hub_status_data(struct usb_hcd *hcd, char *buf)
buf[(i + 1) / 8] |= 1 << (i + 1) % 8;
status = 1;
}
- if ((temp & PORT_RC))
+ if (temp & PORT_RC)
reset_change = true;
if (temp & PORT_OC)
status = 1;
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-18 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-18 16:25 [PATCH] xhci: Remove redundant parentheses when checking for port reset 李哲
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®