ath_debug is bitmask and takes much wider value than 0, 1, or 2.
This commit is contained in:
parent
a4ee532ba4
commit
5cdda6c35f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
|
||||
/* $NetBSD: ath.c,v 1.38 2004/09/07 01:15:59 enami Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
|
||||
|
@ -41,7 +41,7 @@
|
|||
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.54 2004/04/05 04:42:42 sam Exp $");
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.38 2004/09/07 01:15:59 enami Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -316,8 +316,7 @@ sysctl_ath_verify(SYSCTLFN_ARGS)
|
|||
return (EINVAL);
|
||||
#ifdef AR_DEBUG
|
||||
} else if (node.sysctl_num == ath_debug_nodenum) {
|
||||
if (t < 0 || t > 2)
|
||||
return (EINVAL);
|
||||
; /* Accept any vaule */
|
||||
#endif /* AR_DEBUG */
|
||||
} else
|
||||
return (EINVAL);
|
||||
|
|
Loading…
Reference in New Issue