Skip to contentSkip to conversation

staging: wilc1000: wilc_wlan: Remove wrapper function

PATCH New Amitoj Kaur Chawla 1 participant 1 message Feb 29, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: wilc_wlan: Remove wrapper function

Remove is_tcp_ack_filter() which only returns the value of boolean variable enabled by replacing the only call site with the variable enabled itself.

---
 drivers/staging/wilc1000/wilc_wlan.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +1 -6
index 0020620..45e5e46 100644
@@ -306,11 +306,6 @@ void wilc_enable_tcp_ack_filter(bool value)
 	enabled = value;
 }
 
-static bool is_tcp_ack_filter_enabled(void)
-{
-	return enabled;
-}
-
 static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
 				     u32 buffer_size)
 {
@@ -365,7 +360,7 @@ int wilc_wlan_txq_add_net_pkt(struct net_device *dev, void *priv, u8 *buffer,
 	tqe->priv = priv;
 
 	tqe->tcp_pending_ack_idx = NOT_TCP_ACK;
-	if (is_tcp_ack_filter_enabled())
+	if (enabled)
 		tcp_process(dev, tqe);
 	wilc_wlan_txq_add_to_tail(dev, tqe);
 	return wilc->txq_entries;
Signature · 1 line
1.9.1