usb-linux: catch ENODEV in more places.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 24 May 2011 14:12:31 +0000 (16:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Jun 2011 10:36:28 +0000 (12:36 +0200)
commit41c01ee7157c04abea1b97ab409cd5065ecd30bd
tree2d4bf9f2f48a47e721a584623eaf729ca6043052
parent0b862cedf36d927818c50584ddd611b0370673df
usb-linux: catch ENODEV in more places.

Factor out disconnect code (called when a device disappears) to a
separate function.  Add a check for ENODEV errno to a few more places
to make sure we notice disconnects.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux.c