]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: clean up some beacon handling
authorJohannes Berg <johannes.berg@intel.com>
Mon, 4 Oct 2010 12:50:36 +0000 (05:50 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 14 Oct 2010 16:46:50 +0000 (09:46 -0700)
commitdbfcaf187d6db577692bd99455a38849576fd5f9
tree9b1be00ee2aed98564ca3ce7aa0179764dcf43e4
parentb0473b4c5ef681e5a6f5a0fc8219da32c9f333df
iwlwifi: clean up some beacon handling

There's no need to check for NULL before
calling dev_kfree_skb() since it is valid
to call it on NULL -- it becomes a no-op.

There's also no need to initialise the
beacon_skb variable to NULL just after
the memory it is in has been kzalloc'ed.

Some minor whitespace cleanups, and a
lock assertion in a function that needs
the mutex (to access the beacon_skb var)
complete the patch.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c