From: Karsten Wiese Date: Sat, 16 Feb 2008 21:44:42 +0000 (-0800) Subject: USB: EHCI: Refactor "if (handshake()) state = HC_STATE_HALT" X-Git-Tag: v2.6.26-rc1~1061^2~96 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c765d4cad977f7e454a53d5bca5a942156b2d94c;p=pandora-kernel.git USB: EHCI: Refactor "if (handshake()) state = HC_STATE_HALT" Refactor the EHCI "if (handshake()) state = HC_STATE_HALT" idiom, which appears 4 times, by replacing it with calls to a new function called handshake_on_error_set_halt(). Saves a few bytes too. Signed-off-by: Karsten Wiese Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed