Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic ath_debug is bitmask and takes much wider value t...



details:   https://anonhg.NetBSD.org/src/rev/d6cdbfeb58d3
branches:  trunk
changeset: 569811:d6cdbfeb58d3
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Sep 07 01:15:59 2004 +0000

description:
ath_debug is bitmask and takes much wider value than 0, 1, or 2.

diffstat:

 sys/dev/ic/ath.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 2f912c22d9b3 -r d6cdbfeb58d3 sys/dev/ic/ath.c
--- a/sys/dev/ic/ath.c  Tue Sep 07 01:07:40 2004 +0000
+++ b/sys/dev/ic/ath.c  Tue Sep 07 01:15:59 2004 +0000
@@ -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 @@
                        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);



Home | Main Index | Thread Index | Old Index