From: Deng-Cheng Zhu Date: Sun, 6 Oct 2013 06:08:17 +0000 (-0700) Subject: USB/host: Bugfix: Return length of copied buffer in uhci_hub_control() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~66^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a3e2055c56c7c32b51d47bde78c7f7508ffea98;p=pandora-kernel.git USB/host: Bugfix: Return length of copied buffer in uhci_hub_control() In addition to the error statuses -ETIMEDOUT and -EPIPE, uhci_hub_control() needs to return the length of copied buffer when appropriate, so that the returned status of ->hub_control() in rh_call_control() in the USB core HCD can be properly handled. This patch also removes the OK() macro to make the code more readable. Reviewed-by: James Hogan Signed-off-by: Deng-Cheng Zhu Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed