Thread (4 messages) 4 messages, 2 authors, 2021-08-27
STALE1857d

[PATCH] usb: core: hcd: merge repetitive strings in usb_hcd_request_irqs()

From: Sergey Shtylyov <hidden>
Date: 2021-08-21 20:48:45

Two dev_info() calls in usb_hcd_request_irqs() have the same "io " strings
needlessly repeated. Merge these strings into the format strings of those
dev_info() calls...

Signed-off-by: Sergey Shtylyov <redacted>

---
The patch is against the 'usb-next' branch of Greg KH's 'usb.git' repo...

 drivers/usb/core/hcd.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Index: usb/drivers/usb/core/hcd.c
===================================================================
--- usb.orig/drivers/usb/core/hcd.c
+++ usb/drivers/usb/core/hcd.c
@@ -2730,16 +2730,16 @@ static int usb_hcd_request_irqs(struct u
 			return retval;
 		}
 		hcd->irq = irqnum;
-		dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum,
-				(hcd->driver->flags & HCD_MEMORY) ?
-					"io mem" : "io base",
-					(unsigned long long)hcd->rsrc_start);
+		dev_info(hcd->self.controller, "irq %d, io %s 0x%08llx\n",
+				irqnum, (hcd->driver->flags & HCD_MEMORY) ?
+					"mem" : "base",
+				(unsigned long long)hcd->rsrc_start);
 	} else {
 		hcd->irq = 0;
 		if (hcd->rsrc_start)
-			dev_info(hcd->self.controller, "%s 0x%08llx\n",
+			dev_info(hcd->self.controller, "io %s 0x%08llx\n",
 					(hcd->driver->flags & HCD_MEMORY) ?
-					"io mem" : "io base",
+						"mem" : "base",
 					(unsigned long long)hcd->rsrc_start);
 	}
 	return 0;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help