summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-01-11 10:34:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-01-11 10:34:14 +0000
commit3b9f84e1ba9ca04b42f0b078a84919151b988bf3 (patch)
tree9075de6997c90271c72a27aece3630b0e3c7f897 /sys/dev/usb
parentc3c266dc69b81683e36c0a73c09bca68dbaa2f45 (diff)
Remove KASSERT(0) and default switch case. No other sc_ncm_format
switch has a default case and umb_ncm_setup_format() ensures that only 16 and 32bit formats are accepted. Fixes build error without DIAGNOSTIC set. Found by and OK robert@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_umb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c
index 9cb6e267018..889be97477c 100644
--- a/sys/dev/usb/if_umb.c
+++ b/sys/dev/usb/if_umb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_umb.c,v 1.48 2022/01/09 05:43:00 jsg Exp $ */
+/* $OpenBSD: if_umb.c,v 1.49 2022/01/11 10:34:13 claudio Exp $ */
/*
* Copyright (c) 2016 genua mbH
@@ -1013,8 +1013,6 @@ umb_start(struct ifnet *ifp)
offs += sizeof (struct ncm_pointer32);
maxoverhead = sizeof (struct ncm_pointer32_dgram);
break;
- default:
- KASSERT(0);
}
/*