diff options
Diffstat (limited to 'drivers/usb/class')
-rw-r--r-- | drivers/usb/class/usbtmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 0f5c05f6f9df..895a09839001 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c | |||
@@ -106,12 +106,13 @@ static int usbtmc_open(struct inode *inode, struct file *filp) | |||
106 | { | 106 | { |
107 | struct usb_interface *intf; | 107 | struct usb_interface *intf; |
108 | struct usbtmc_device_data *data; | 108 | struct usbtmc_device_data *data; |
109 | int retval = -ENODEV; | 109 | int retval = 0; |
110 | 110 | ||
111 | intf = usb_find_interface(&usbtmc_driver, iminor(inode)); | 111 | intf = usb_find_interface(&usbtmc_driver, iminor(inode)); |
112 | if (!intf) { | 112 | if (!intf) { |
113 | printk(KERN_ERR KBUILD_MODNAME | 113 | printk(KERN_ERR KBUILD_MODNAME |
114 | ": can not find device for minor %d", iminor(inode)); | 114 | ": can not find device for minor %d", iminor(inode)); |
115 | retval = -ENODEV; | ||
115 | goto exit; | 116 | goto exit; |
116 | } | 117 | } |
117 | 118 | ||