From: Pavel Roskin Date: Fri, 10 Apr 2009 01:41:05 +0000 (-0400) Subject: orinoco: correct timeout logic in __orinoco_hw_set_tkip_key() X-Git-Tag: v2.6.30-rc4~68^2~40^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91fe9ca74e8220f17e2fa71a92cda330857daac4;p=pandora-kernel.git orinoco: correct timeout logic in __orinoco_hw_set_tkip_key() If the value read from HERMES_RID_TXQUEUEEMPTY becomes 0 after exactly 100 readings, we wrongly consider it a timeout. Rewrite the clever while loop as a for loop that does the right thing and looks simpler. Reported by Juha Leppanen Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville --- Reading git-diff-tree failed