Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8dc5fb4e authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: removes unused local variable



This patch removes unused local variable.
This variable is operation definition that back off from sending packets
for some time.
However, that has been deleted operation code.
That is removes all relative code.

Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 847109fc
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
@@ -309,12 +309,6 @@ static int linux_wlan_txq_task(void *vp)
	struct wilc_vif *vif;
	struct wilc_vif *vif;
	struct wilc *wl;
	struct wilc *wl;
	struct net_device *dev = vp;
	struct net_device *dev = vp;
#define TX_BACKOFF_WEIGHT_INCR_STEP (1)
#define TX_BACKOFF_WEIGHT_DECR_STEP (1)
#define TX_BACKOFF_WEIGHT_MAX (7)
#define TX_BACKOFF_WEIGHT_MIN (0)
#define TX_BACKOFF_WEIGHT_UNIT_MS (10)
	int backoff_weight = TX_BACKOFF_WEIGHT_MIN;


	vif = netdev_priv(dev);
	vif = netdev_priv(dev);
	wl = vif->wilc;
	wl = vif->wilc;
@@ -338,18 +332,6 @@ static int linux_wlan_txq_task(void *vp)
				if (netif_queue_stopped(wl->vif[1]->ndev))
				if (netif_queue_stopped(wl->vif[1]->ndev))
					netif_wake_queue(wl->vif[1]->ndev);
					netif_wake_queue(wl->vif[1]->ndev);
			}
			}

			if (ret == WILC_TX_ERR_NO_BUF) {
				backoff_weight += TX_BACKOFF_WEIGHT_INCR_STEP;
				if (backoff_weight > TX_BACKOFF_WEIGHT_MAX)
					backoff_weight = TX_BACKOFF_WEIGHT_MAX;
			} else {
				if (backoff_weight > TX_BACKOFF_WEIGHT_MIN) {
					backoff_weight -= TX_BACKOFF_WEIGHT_DECR_STEP;
					if (backoff_weight < TX_BACKOFF_WEIGHT_MIN)
						backoff_weight = TX_BACKOFF_WEIGHT_MIN;
				}
			}
		} while (ret == WILC_TX_ERR_NO_BUF && !wl->close);
		} while (ret == WILC_TX_ERR_NO_BUF && !wl->close);
	}
	}
	return 0;
	return 0;