summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-02-29 19:23:44 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-01 19:42:32 -0800
commit5a9ff74d8e681f9ac6af6cc1444a812b74e7c2de (patch)
tree6c33ed4f475e258a0c702768c774dfaa9898cab3 /drivers/staging/wilc1000
parent0d413ba46e0f67d8a7235f8149ffbc2af8ec3b1e (diff)
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. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index 557fe2903caa..a670cb73f840 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -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;