From: Johannes Berg Date: Fri, 25 Sep 2009 21:24:24 +0000 (-0700) Subject: iwlwifi: fix a typo X-Git-Tag: MMI-PSA29.97-13-9~25754^2~865^2~68 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bddbab36d736c181678e07515aaa63045bdcea7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git iwlwifi: fix a typo We never have four chains, but let's fix the typo while we noticed it. You count 0, 1, 2, 3, not 0, 1, 2, 4 :) Signed-off-by: Johannes Berg Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 2908bff49a3b..5ff0f66f8aa1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c @@ -984,7 +984,7 @@ static u8 iwl_count_chain_bitmap(u32 chain_bitmap) res = (chain_bitmap & BIT(0)) >> 0; res += (chain_bitmap & BIT(1)) >> 1; res += (chain_bitmap & BIT(2)) >> 2; - res += (chain_bitmap & BIT(4)) >> 4; + res += (chain_bitmap & BIT(3)) >> 3; return res; }