From a76e37e6a35a225ced76e8715a1716e308348720 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 11 Jan 2022 10:34:13 +0000 Subject: [PATCH] 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@ --- sys/dev/usb/if_umb.c | 4 +--- 1 file changed, 1 insertion(+), 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); } /* -- 2.20.1