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)
commit4cd2bf76a40a148bc92f4a3d17bc7f94277b0410
tree5748b305933dff85a98d1f356da44d6f94da4272
parentdbf28e21ca391110e90ccad05dda79d2e2f60e0e
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