Additionally remove useless label.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
---
 drivers/usb/class/usbtmc.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c
index 91190e6..cb2d672 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -19,6 +19,8 @@
  * http://www.gnu.org/copyleft/gpl.html.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -129,10 +131,8 @@ static int usbtmc_open(struct inode *inode, struct file 
*filp)
 
        intf = usb_find_interface(&usbtmc_driver, iminor(inode));
        if (!intf) {
-               printk(KERN_ERR KBUILD_MODNAME
-                      ": can not find device for minor %d", iminor(inode));
-               retval = -ENODEV;
-               goto exit;
+               pr_err("can not find device for minor %d", iminor(inode));
+               return -ENODEV;
        }
 
        data = usb_get_intfdata(intf);
@@ -141,7 +141,6 @@ static int usbtmc_open(struct inode *inode, struct file 
*filp)
        /* Store pointer in file structure's private data field */
        filp->private_data = data;
 
-exit:
        return retval;
 }
 
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to