iwlegacy: 3945: get rid of hw_{set,get}_rate
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 23 Dec 2011 07:13:46 +0000 (08:13 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:44 +0000 (14:30 -0500)
Remove these helpers, some are not unused at all, one can be
unrolled in place of use.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/3945.c
drivers/net/wireless/iwlegacy/3945.h

index 0b99deb4842626a1907d5ef3b2aac093a111462c..44a121167806ca450813a102fefbf8bcb34a1a09 100644 (file)
@@ -2331,8 +2331,7 @@ il3945_init_hw_rate_table(struct il_priv *il)
        for (i = 0; i < ARRAY_SIZE(il3945_rates); i++) {
                idx = il3945_rates[i].table_rs_idx;
 
-               table[idx].rate_n_flags =
-                   il3945_hw_set_rate_n_flags(il3945_rates[i].plcp, 0);
+               table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp);
                table[idx].try_cnt = il->retry_rate;
                prev_idx = il3945_get_prev_ieee_rate(i);
                table[idx].next_rate_idx = il3945_rates[prev_idx].table_rs_idx;
index 2b2895c544d711b1430f4f39754b01eae2d6b397..970e5c3a410a2cb11332905b9878d3b9f5479405 100644 (file)
@@ -476,24 +476,6 @@ struct il3945_shared {
        __le32 tx_base_ptr[8];
 } __packed;
 
-static inline u8
-il3945_hw_get_rate(__le16 rate_n_flags)
-{
-       return le16_to_cpu(rate_n_flags) & 0xFF;
-}
-
-static inline u16
-il3945_hw_get_rate_n_flags(__le16 rate_n_flags)
-{
-       return le16_to_cpu(rate_n_flags);
-}
-
-static inline __le16
-il3945_hw_set_rate_n_flags(u8 rate, u16 flags)
-{
-       return cpu_to_le16((u16) rate | flags);
-}
-
 /************************************/
 /* iwl3945 Flow Handler Definitions */
 /************************************/