diff options
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ar5211.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5212.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c index ee71c24ff6c..5d55e3a63c0 100644 --- a/sys/dev/ic/ar5211.c +++ b/sys/dev/ic/ar5211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5211.c,v 1.41 2009/01/15 07:55:22 grange Exp $ */ +/* $OpenBSD: ar5211.c,v 1.42 2009/02/06 17:06:45 grange Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -2415,7 +2415,7 @@ ar5k_ar5211_get_capabilities(struct ath_hal *hal) * If the EEPROM is not reporting any mode, we try 11b. * This might fix a few broken devices with invalid EEPROM. */ - if (a == b == g == 0) + if (!a && !b && !g) b = 1; /* diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index 54d1056f72c..6821e0b3cf1 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5212.c,v 1.49 2009/01/15 07:55:22 grange Exp $ */ +/* $OpenBSD: ar5212.c,v 1.50 2009/02/06 17:06:45 grange Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -2827,7 +2827,7 @@ ar5k_ar5212_get_capabilities(struct ath_hal *hal) * If the EEPROM is not reporting any mode, we try 11b. * This might fix a few broken devices with invalid EEPROM. */ - if (a == b == g == 0) + if (!a && !b && !g) b = 1; /* |