staging: unisys: get rid of goto in visorchipset_open()
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 5 Dec 2014 22:09:19 +0000 (17:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Jan 2015 01:32:35 +0000 (17:32 -0800)
This goto uses CamelCase and was completely unnecessary.

Signed-off-by: Ken Depro <kenneth.depro@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/file.c

index 4b0c15849e4184a0c94c984c6d192bdc083313db..d43c40309f4cb2353d2b25f32a17dce1e1cf6829 100644 (file)
@@ -103,17 +103,12 @@ static int
 visorchipset_open(struct inode *inode, struct file *file)
 {
        unsigned minor_number = iminor(inode);
-       int rc = -ENODEV;
 
        DEBUGDRV("%s", __func__);
        if (minor_number != 0)
-               goto Away;
+               return -ENODEV;
        file->private_data = NULL;
-       rc = 0;
-Away:
-       if (rc < 0)
-               ERRDRV("%s minor=%d failed", __func__, minor_number);
-       return rc;
+       return 0;
 }
 
 static int