diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-12 12:15:18 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-12 12:15:18 -0700 |
commit | 0f0881b09078fe3a6bc70f05e8ba49a52b2478a2 (patch) | |
tree | cbca0ae7144a4c16a260bc859420f2b2b8b2656f /drivers/staging/brcm80211/util/bcmwifi.c | |
parent | f1c6b7fb708e3cb6f5e7b46916e9def728c15345 (diff) | |
download | op-kernel-dev-0f0881b09078fe3a6bc70f05e8ba49a52b2478a2.zip op-kernel-dev-0f0881b09078fe3a6bc70f05e8ba49a52b2478a2.tar.gz |
Staging: brcm80211: remove TRUE #define
use the kernel provided 'true' value instead, especially
as we are using a 'bool' for these variables.
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/util/bcmwifi.c')
-rw-r--r-- | drivers/staging/brcm80211/util/bcmwifi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/brcm80211/util/bcmwifi.c b/drivers/staging/brcm80211/util/bcmwifi.c index 37c26af..83e7e1e 100644 --- a/drivers/staging/brcm80211/util/bcmwifi.c +++ b/drivers/staging/brcm80211/util/bcmwifi.c @@ -26,24 +26,24 @@ * Verify the chanspec is using a legal set of parameters, i.e. that the * chanspec specified a band, bw, ctl_sb and channel and that the * combination could be legal given any set of circumstances. - * RETURNS: TRUE is the chanspec is malformed, false if it looks good. + * RETURNS: true is the chanspec is malformed, false if it looks good. */ bool wf_chspec_malformed(chanspec_t chanspec) { /* must be 2G or 5G band */ if (!CHSPEC_IS5G(chanspec) && !CHSPEC_IS2G(chanspec)) - return TRUE; + return true; /* must be 20 or 40 bandwidth */ if (!CHSPEC_IS40(chanspec) && !CHSPEC_IS20(chanspec)) - return TRUE; + return true; /* 20MHZ b/w must have no ctl sb, 40 must have a ctl sb */ if (CHSPEC_IS20(chanspec)) { if (!CHSPEC_SB_NONE(chanspec)) - return TRUE; + return true; } else { if (!CHSPEC_SB_UPPER(chanspec) && !CHSPEC_SB_LOWER(chanspec)) - return TRUE; + return true; } return FALSE; |