summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-06-27 22:24:20 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-06-27 22:24:20 +0000
commit7725b5c306060e81d67897eed17450473094324d (patch)
tree2044a1012e7156b1bf77db5bcb3bc09854a285b2 /sys
parentadb097eb8e774154efe8d5d1b9bd9b8a6c8650aa (diff)
downloadFreeBSD-src-7725b5c306060e81d67897eed17450473094324d.zip
FreeBSD-src-7725b5c306060e81d67897eed17450473094324d.tar.gz
Remove superfluous semi-colon
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb_port.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index b29be6b..5ac8f9a 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -126,14 +126,14 @@ __CONCAT(dname,_attach)(parent, self, aux) \
* because of includes in the wrong order.
*/
#define bdevice device_t
-#define USBDEVNAME(bdev) device_get_nameunit(bdev)
+#define USBDEVNAME(bdev) (bdev? device_get_nameunit(bdev):"-")
/* XXX Change this when FreeBSD has memset
*/
-#define memset(d, v, s) \
+#define memset(d, v, s) \
do{ \
if ((v) == 0) \
- bzero((d), (s)); \
+ bzero((d), (s));\
else \
panic("Non zero filler for memset, cannot handle!"); \
} while (0)
@@ -184,7 +184,7 @@ __CONCAT(dname,_attach)(device_t self)
#define USB_ATTACH_SETUP \
sc->sc_dev = self; \
- device_set_desc_copy(self, devinfo);
+ device_set_desc_copy(self, devinfo)
#define USB_GET_SC_OPEN(dname, unit, sc) \
struct __CONCAT(dname,_softc) *sc = \
OpenPOWER on IntegriCloud