wifi: iwlwifi: mei: use wait_event_timeout() return value
authorAvraham Stern <avraham.stern@intel.com>
Wed, 2 Nov 2022 14:59:56 +0000 (16:59 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Thu, 10 Nov 2022 11:27:04 +0000 (13:27 +0200)
commit6564f3b8621e380114732644be4c65064361eb6f
tree0c67286d81d1337eaf2b59cb8edc62b5c780868c
parent733eb54f62c6f07938c83cac6ef69afc28ca7e6c
wifi: iwlwifi: mei: use wait_event_timeout() return value

wait_event_timeout() return value indicates whether the condition
evaluated to true or not, so no need to re-take the lock and
check the got_ownership flag.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221102165239.33159054626f.Ief9e2dc42f96f8044c197d32172003a5ead0f8d3@changeid
drivers/net/wireless/intel/iwlwifi/mei/main.c