]> git.karo-electronics.de Git - linux-beck.git/commit
wusb: fix error path for wusb_set_dev_addr()
authorAnderson Lizardo <anderson.lizardo@indt.org.br>
Wed, 17 Sep 2008 15:34:31 +0000 (16:34 +0100)
committerDavid Vrabel <dv02@dv02pc01.europe.root.pri>
Wed, 17 Sep 2008 15:54:32 +0000 (16:54 +0100)
commitf51c23baedf191734364d3aae034d8c9c4cd8cf8
tree1a6f39a68f02dc4738290ae7a5a08717e9bbc36f
parentd09318b8ab2eabb65b6fa0dc04dab1822846eabb
wusb: fix error path for wusb_set_dev_addr()

Error path for wusb_set_dev_addr() was handled incorrectly. Fix it by
considering error only when return value is negative.

Signed-off-by: Anderson Lizardo <anderson.lizardo@indt.org.br>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/usb/wusbcore/devconnect.c