iwlwifi: mvm: fix uninitialized var while waiting for queues to empty
authorSharon Dvir <sharon.dvir@intel.com>
Mon, 12 Jun 2017 08:40:33 +0000 (11:40 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 09:41:44 +0000 (12:41 +0300)
commitbec9522aa57421984cb4e1e87eee195bae1ccb25
tree491c10ecc42ef4497a4c283a0525019888800ca9
parentcf6c6ea352faadb15d1373d890bf857080b218a4
iwlwifi: mvm: fix uninitialized var while waiting for queues to empty

While waiting for queues to empty,
If txq_id == IWL_MVM_INVALID_QUEUE for all txq_ids,
ret is used uninitialized.
Found by Klocwork.

Fixes: d6d517b7730c ("iwlwifi: add wait for tx queue empty")
Signed-off-by: Sharon Dvir <sharon.dvir@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c