Skip to contentSkip to conversation

xhci: Remove redundant parentheses when checking for port reset.

PATCH New 李哲 1 participant 1 message Nov 18, 2024

Subsystems (2)
lore
Share & tools
lore

李哲

author
#0 lore raw

PATCH 1/1 xhci: Remove redundant parentheses when checking for port reset.

When checking if the port status has been reset,
no additional parentheses are needed

---
 drivers/usb/host/xhci-hub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/xhci-hub.c +1 -1
index 8d774f19271e..6b494a2e8140 100644
@@ -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;
Signature · 1 line
2.17.1