Module Name:    src
Committed By:   skrll
Date:           Thu Apr 27 06:30:09 UTC 2023

Modified Files:
        src/sys/dev/usb: xhci.c

Log Message:
Remove an unnecessary cast in a KASSERTMSG


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/sys/dev/usb/xhci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/xhci.c
diff -u src/sys/dev/usb/xhci.c:1.177 src/sys/dev/usb/xhci.c:1.178
--- src/sys/dev/usb/xhci.c:1.177	Sun Apr  9 20:41:28 2023
+++ src/sys/dev/usb/xhci.c	Thu Apr 27 06:30:09 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: xhci.c,v 1.177 2023/04/09 20:41:28 riastradh Exp $	*/
+/*	$NetBSD: xhci.c,v 1.178 2023/04/27 06:30:09 skrll Exp $	*/
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.177 2023/04/09 20:41:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.178 2023/04/27 06:30:09 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -4359,8 +4359,7 @@ xhci_device_ctrl_start(struct usbd_xfer 
 	KASSERT(polling || mutex_owned(&sc->sc_lock));
 
 	/* we rely on the bottom bits for extra info */
-	KASSERTMSG(((uintptr_t)xfer & 0x3) == 0x0, "xfer %zx",
-	    (uintptr_t) xfer);
+	KASSERTMSG(((uintptr_t)xfer & 0x3) == 0x0, "xfer %p", xfer);
 
 	KASSERT((xfer->ux_rqflags & URQ_REQUEST) != 0);
 

Reply via email to