]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63e186f87872bfafd7adf1088be80b96f3b4b4e6
treec674963add771a06aac0928f9c17221ea16f33f5
parent97821a7401c25f26290e65a7caa6bf5bbddb9f72
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