]> 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)
commit1adfe2e455826cac7425d14a8bf5e00d05b44a08
treec674963add771a06aac0928f9c17221ea16f33f5
parentaf8a2b108a9a4c792ddcf4239b246067cef45fc3
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