git: efc8353481e3 - main - usbdump: remove some FreeBSD 9.x code

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 15 Dec 2025 21:45:37 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=efc8353481e3b65daa201b7a20faad3dcc4b7f7a

commit efc8353481e3b65daa201b7a20faad3dcc4b7f7a
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-12-15 20:52:02 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-12-15 21:17:23 +0000

    usbdump: remove some FreeBSD 9.x code
---
 usr.sbin/usbdump/usbdump.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/usr.sbin/usbdump/usbdump.c b/usr.sbin/usbdump/usbdump.c
index 40956e11a450..d7b084657162 100644
--- a/usr.sbin/usbdump/usbdump.c
+++ b/usr.sbin/usbdump/usbdump.c
@@ -792,23 +792,6 @@ usage(void)
 	exit(EX_USAGE);
 }
 
-static void
-check_usb_pf_sysctl(void)
-{
-	int error;
-	int no_pf_val = 0;
-	size_t no_pf_len = sizeof(int);
-
-	/* check "hw.usb.no_pf" sysctl for 8- and 9- stable */
-
-	error = sysctlbyname("hw.usb.no_pf", &no_pf_val,
-	    &no_pf_len, NULL, 0);
-	if (error == 0 && no_pf_val != 0) {
-		warnx("The USB packet filter might be disabled.");
-		warnx("See the \"hw.usb.no_pf\" sysctl for more information.");
-	}
-}
-
 int
 main(int argc, char *argv[])
 {
@@ -939,8 +922,6 @@ main(int argc, char *argv[])
 		exit(EXIT_SUCCESS);
 	}
 
-	check_usb_pf_sysctl();
-
 	p->fd = fd = open("/dev/bpf", O_RDONLY);
 	if (p->fd < 0)
 		err(EXIT_FAILURE, "Could not open BPF device");