Commit 29b48ae3 authored by Patrik Karlin's avatar Patrik Karlin Committed by Greg Kroah-Hartman

staging: rtl8192u: removed some non used else's

This patch removes some else blocks that has no function in the
code
Signed-off-by: default avatarPatrik Kårlin <patrik.karlin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f00c493b
...@@ -2175,7 +2175,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb) ...@@ -2175,7 +2175,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)
dev->trans_start = jiffies; dev->trans_start = jiffies;
atomic_inc(&priv->tx_pending[tcb_desc->queue_index]); atomic_inc(&priv->tx_pending[tcb_desc->queue_index]);
return 0; return 0;
}else{ } else {
RT_TRACE(COMP_ERR, "Error TX URB %d, error %d", atomic_read(&priv->tx_pending[tcb_desc->queue_index]), RT_TRACE(COMP_ERR, "Error TX URB %d, error %d", atomic_read(&priv->tx_pending[tcb_desc->queue_index]),
status); status);
return -1; return -1;
...@@ -4571,11 +4571,8 @@ void rtl8192_process_phyinfo(struct r8192_priv * priv,u8* buffer, struct ieee802 ...@@ -4571,11 +4571,8 @@ void rtl8192_process_phyinfo(struct r8192_priv * priv,u8* buffer, struct ieee802
{ {
// if previous packet is not aggregated packet // if previous packet is not aggregated packet
bcheck = true; bcheck = true;
}else
{
} }
if(slide_rssi_statistics++ >= PHY_RSSI_SLID_WIN_MAX) if(slide_rssi_statistics++ >= PHY_RSSI_SLID_WIN_MAX)
{ {
slide_rssi_statistics = PHY_RSSI_SLID_WIN_MAX; slide_rssi_statistics = PHY_RSSI_SLID_WIN_MAX;
...@@ -5675,10 +5672,6 @@ void rtl8192_rx_cmd(struct sk_buff *skb) ...@@ -5675,10 +5672,6 @@ void rtl8192_rx_cmd(struct sk_buff *skb)
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
} }
else
;
} }
void rtl8192_irq_rx_tasklet(struct r8192_priv *priv) void rtl8192_irq_rx_tasklet(struct r8192_priv *priv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment