diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-06 17:06:46 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-06 17:06:46 +0000 |
commit | ca0a206d8165b59f93c6c793293b9d3cb391fca7 (patch) | |
tree | 6913e62c69c73bffa5547cbae3cf81673cc12c07 /sys/dev/ic | |
parent | b58d2ecab52c741f452d8499565f1ff699e62735 (diff) |
Replace comparision between boolean expression result and an integer
that may confuse gcc with a simple boolean expression.
ok reyk@
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; /* |