USB: usbtmc: fix stupid bug in open()
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Mar 2009 03:42:55 +0000 (20:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 21:01:28 +0000 (14:01 -0700)
commit5b10916ea0a62920204517e1c4ce14560b4f96ab
treec119039aa73e1b47e07b1857d6cfa2efc11adad6
parentee568b25ee9e160b32d1aef73d8b2ee9c05d34db
USB: usbtmc: fix stupid bug in open()

open() will never succeed, as we always return -ENODEV.  Fix this
obvious bug.

Thanks to Jouni Ryno for reporting it.

Reported-by: Jouni Ryno <Jouni.Ryno@fmi.fi>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usbtmc.c