From: Clemens Ladisch Date: Tue, 12 Apr 2011 05:54:59 +0000 (+0200) Subject: firewire: ohci: optimize find_branch_descriptor() X-Git-Tag: v3.0-rc1~368^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff8fbc61727c926883eec381fbd3d32d1fab504;p=pandora-kernel.git firewire: ohci: optimize find_branch_descriptor() When z==2, the condition "key == 2" is superfluous because it cannot occur without "b == 3", as a descriptor with b!=3 and key==2 would be an OUTPUT_MORE_IMMEDIATE descriptor which cannot be used alone. Also remove magic numbers and needless computations on the b field. Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- Reading git-diff-tree failed