netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove unused routines from d80211 version of bcm43xx
@ 2006-07-14 21:04 Larry Finger
  2006-07-14 23:02 ` Michael Buesch
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2006-07-14 21:04 UTC (permalink / raw)
  To: John Linville, netdev

This patch removes some unused static inline routines from bcm43xx-d80211 version of bcm43xx_main.h.

Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>

===========================================================

index e228833..04d8b91 100644
--- a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h
+++ b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h
@@ -112,30 +112,6 @@ int bcm43xx_channel_to_freq(struct bcm43
     return bcm43xx_channel_to_freq_bg(channel);
  }

-/* Lightweight function to check if a channel number is valid.
- * Note that this does _NOT_ check for geographical restrictions!
- */
-static inline
-int bcm43xx_is_valid_channel_a(u8 channel)
-{
-    return (channel >= IEEE80211_52GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_52GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel_bg(u8 channel)
-{
-    return (channel >= IEEE80211_24GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_24GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel(struct bcm43xx_private *bcm,
-                  u8 channel)
-{
-    if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A)
-        return bcm43xx_is_valid_channel_a(channel);
-    return bcm43xx_is_valid_channel_bg(channel);
-}
-
  void bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf);
  void bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf);


===============================================================

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] remove unused routines from d80211 version of bcm43xx
  2006-07-14 21:04 [PATCH] remove unused routines from d80211 version of bcm43xx Larry Finger
@ 2006-07-14 23:02 ` Michael Buesch
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Buesch @ 2006-07-14 23:02 UTC (permalink / raw)
  To: John Linville; +Cc: Larry Finger, netdev

On Friday 14 July 2006 23:04, you wrote:
> This patch removes some unused static inline routines from bcm43xx-d80211 version of bcm43xx_main.h.
> 
> Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>

Signed-off-by: Michael Buesch <mb@bu3sch.de>

> ===========================================================
> 
> index e228833..04d8b91 100644
> --- a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h
> +++ b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h
> @@ -112,30 +112,6 @@ int bcm43xx_channel_to_freq(struct bcm43
>      return bcm43xx_channel_to_freq_bg(channel);
>   }
> 
> -/* Lightweight function to check if a channel number is valid.
> - * Note that this does _NOT_ check for geographical restrictions!
> - */
> -static inline
> -int bcm43xx_is_valid_channel_a(u8 channel)
> -{
> -    return (channel >= IEEE80211_52GHZ_MIN_CHANNEL
> -           && channel <= IEEE80211_52GHZ_MAX_CHANNEL);
> -}
> -static inline
> -int bcm43xx_is_valid_channel_bg(u8 channel)
> -{
> -    return (channel >= IEEE80211_24GHZ_MIN_CHANNEL
> -           && channel <= IEEE80211_24GHZ_MAX_CHANNEL);
> -}
> -static inline
> -int bcm43xx_is_valid_channel(struct bcm43xx_private *bcm,
> -                  u8 channel)
> -{
> -    if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A)
> -        return bcm43xx_is_valid_channel_a(channel);
> -    return bcm43xx_is_valid_channel_bg(channel);
> -}
> -
>   void bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf);
>   void bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf);

-- 
Greetings Michael.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-14 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-14 21:04 [PATCH] remove unused routines from d80211 version of bcm43xx Larry Finger
2006-07-14 23:02 ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).