]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: remove hw_ready variable
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2011 10:14:52 +0000 (03:14 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:21:23 +0000 (10:21 -0700)
commit6515222c7dede30d2dd3da0cc7e5feafbf878796
tree5748b305933dff85a98d1f356da44d6f94da4272
parent58a0acbff920bcd1092f567d8f68b90f4d9f3153
iwlagn: remove hw_ready variable

This variable is only ever checked right after
the function that sets it, but the same function
will also return the status, so we can pass it
through instead of checking hw_ready later.

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-lib.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h