iwlwifi: mvm: simplify iwl_mvm_stop_roc()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Jun 2015 21:38:23 +0000 (23:38 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Jun 2015 06:43:20 +0000 (09:43 +0300)
commitebf17ff9bb46206ca7a4bc7260bff52f593c25db
treec674963add771a06aac0928f9c17221ea16f33f5
parentaa42fb2420d4dc213d8306a9e0fdddf7ba83a10c
iwlwifi: mvm: simplify iwl_mvm_stop_roc()

As pointed out by smatch, there's no need for a loop that always
immediately terminates. Use an if statement instead and while at
it clean up the mvmvif initialization.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/time-event.c