summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/umc-dev.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-11-11 21:39:11 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-11-11 22:02:11 -0800
commit49cc69b6789b57d2d8ed78843c4219525b433b58 (patch)
tree1b831f622c242f64bb89621b2e7663c2ca2a184b /drivers/uwb/umc-dev.c
parent5fdbe44d033d059cc56c2803e6b4dbd8cb4e5e39 (diff)
downloadblackbird-op-linux-49cc69b6789b57d2d8ed78843c4219525b433b58.tar.gz
blackbird-op-linux-49cc69b6789b57d2d8ed78843c4219525b433b58.zip
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 <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/uwb/umc-dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud