From: Johannes Berg Date: Fri, 25 Sep 2009 21:24:24 +0000 (-0700) Subject: iwlwifi: fix a typo X-Git-Tag: v2.6.33-rc1~388^2~865^2~68 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9bddbab36d736c181678e07515aaa63045bdcea7;p=~shefty%2Frdma-dev.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 2908bff49a3..5ff0f66f8aa 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; }