iwlwifi: simplify code in iwlagn_key_sta_id
authorJohannes Berg <johannes.berg@intel.com>
Mon, 5 Mar 2012 19:24:22 +0000 (11:24 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:08 +0000 (15:16 -0500)
commit40e4e6868c532b439754154d69a2837dbf9bd91e
tree695900549dc52ed495b7ccc567ea621859903a9f
parent71cb99241d63b26a41c9cce6ed441bc30f90224a
iwlwifi: simplify code in iwlagn_key_sta_id

Simplify the code by returning directly in the
error case and replacing the switch/if with a
single if statement.

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