From: Axel Lin Date: Fri, 12 Nov 2010 05:39:11 +0000 (-0800) Subject: Input: xpad - return proper error in error path X-Git-Tag: v2.6.38-rc1~463^2^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49cc69b6789b57d2d8ed78843c4219525b433b58;p=pandora-kernel.git Input: xpad - return proper error in error path In current implementation, xpad_probe return 0 when usb_alloc_urb failed for xpad->bulk_out and kzalloc failed for xpad->bdata. This patch removes the initialization for error variable, assign the error code at the place the error happens instead. Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed