Skip to content

Commit

Permalink
rtlwifi: remove useless code
Browse files Browse the repository at this point in the history
Remove useless local variables last_read_point and last_txw_point and
the code related.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Jul 19, 2017
1 parent 06548fb commit f55dda4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ u16 rtl92ee_rx_desc_buff_remained_cnt(struct ieee80211_hw *hw, u8 queue_index)
struct rtl_priv *rtlpriv = rtl_priv(hw);
u16 read_point = 0, write_point = 0, remind_cnt = 0;
u32 tmp_4byte = 0;
static u16 last_read_point;
static bool start_rx;

tmp_4byte = rtl_read_dword(rtlpriv, REG_RXQ_TXBD_IDX);
Expand Down Expand Up @@ -506,7 +505,6 @@ u16 rtl92ee_rx_desc_buff_remained_cnt(struct ieee80211_hw *hw, u8 queue_index)

rtlpci->rx_ring[queue_index].next_rx_rp = write_point;

last_read_point = read_point;
return remind_cnt;
}

Expand Down Expand Up @@ -917,7 +915,6 @@ void rtl92ee_set_desc(struct ieee80211_hw *hw, u8 *pdesc, bool istx,
struct rtl_priv *rtlpriv = rtl_priv(hw);
u16 cur_tx_rp = 0;
u16 cur_tx_wp = 0;
static u16 last_txw_point;
static bool over_run;
u32 tmp = 0;
u8 q_idx = *val;
Expand Down Expand Up @@ -951,9 +948,6 @@ void rtl92ee_set_desc(struct ieee80211_hw *hw, u8 *pdesc, bool istx,
rtl_write_word(rtlpriv,
get_desc_addr_fr_q_idx(q_idx),
ring->cur_tx_wp);

if (q_idx == 1)
last_txw_point = cur_tx_wp;
}

if (ring->avl_desc < (max_tx_desc - 15)) {
Expand Down

0 comments on commit f55dda4

Please sign in to comment.