usb-host: Drop superfluous null test from usb_host_auto_scan()
commit4663530898a15944706d51b523d1f1545e32e46a
authorMarkus Armbruster <armbru@redhat.com>
Thu, 10 Jan 2013 13:33:24 +0000 (10 14:33 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 14 Jan 2013 11:47:11 +0000 (14 12:47 +0100)
tree00c5818599218b42817907321562de725041d45f
parentcc8d2b65c7e5f44172bf3ec300407522162e9a7f
usb-host: Drop superfluous null test from usb_host_auto_scan()

Coverity points out that port is later passed to usb_host_open(),
which dereferences it.  It actually can't be null: it always points to
usb_host_scan()'s auto port[].  Drop the superfluous port == NULL
test.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/host-linux.c