From: Dan Carpenter Date: Sat, 9 Jan 2010 08:41:48 +0000 (+0300) Subject: iwlwifi: silence buffer overflow warning X-Git-Tag: v2.6.33-rc5~71^2~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39825f4dc9f4e409e8ea43ef4df04a924699ad1f;p=pandora-kernel.git iwlwifi: silence buffer overflow warning Smatch (and presumably other static checkers) complain that MAX_TID_COUNT is past the end of the array. In the resulting discussion, Zhu Yi pointed out that this value is not used in real life and the assignment was only there to silence a gcc warning. If there were a bug in the surrounding code and the value were used, the WARN_ON(!qc) would print a warning before the crash. Signed-off-by: Dan Carpenter Acked-by: Zhu Yi Signed-off-by: John W. Linville --- Reading git-diff-tree failed