iwlagn: make iwlagn_wait_notification return error code
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2011 10:14:48 +0000 (03:14 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:02:55 +0000 (10:02 -0700)
commita8674a1efca60d863d4caa47e102cc4d70d5ff9b
tree13216e202f8d78d178174f46c7fa8654422b6c9e
parent09f18afe766ea3f2c749e3af195bf65fde71b62e
iwlagn: make iwlagn_wait_notification return error code

We're unlikely to care about the actual time spent
waiting, so make the function return an error code
which is less error prone in coding new uses.

Also, while at it, mark __must_check.

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