From: Helmut Schaa Date: Sat, 9 Oct 2010 11:35:13 +0000 (+0200) Subject: rt2x00: Remove superfluous initialization of qidx X-Git-Tag: MMI-PSA29.97-13-9~21994^2~78^2^2~61 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74374725cdf466629fd401a81b3a04e4cdb0815f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rt2x00: Remove superfluous initialization of qidx There is no need to initialize qidx to zero as it will ever be overwritten by the correct value. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 85a134cd62bf..cc4e17c437d1 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c @@ -573,7 +573,7 @@ static void rt2800pci_kick_tx_queue(struct data_queue *queue) { struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; struct queue_entry *entry = rt2x00queue_get_entry(queue, Q_INDEX); - unsigned int qidx = 0; + unsigned int qidx; if (queue->qid == QID_MGMT) qidx = 5;