]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vme: removed useless breaks in vme_user.c
authorTom Jorquera <tom.jorquera@gmail.com>
Wed, 23 Jul 2014 16:17:58 +0000 (18:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 01:21:59 +0000 (18:21 -0700)
vme_user.c contained unnecessary breaks after gotos, which increased
code size and caused code style warning. This is now fixed.

Signed-off-by: Tom Jorquera <tom.jorquera@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c

index 2d8497277aae3ec0de9d6dd6d03197e2a51cfb47..920e50addd3e9d1e7f270b22cf4cf758f5c71a23 100644 (file)
@@ -433,7 +433,6 @@ static loff_t vme_user_llseek(struct file *file, loff_t off, int whence)
        default:
                mutex_unlock(&image[minor].mutex);
                return -EINVAL;
-               break;
        }
 
        if ((absolute < 0) || (absolute >= image_size)) {
@@ -511,7 +510,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
                        }
 
                        return retval;
-                       break;
 
                case VME_SET_MASTER:
 
@@ -552,7 +550,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
                        }
 
                        return retval;
-                       break;
 
                case VME_SET_SLAVE:
 
@@ -806,7 +803,6 @@ static int vme_user_probe(struct vme_dev *vdev)
                default:
                        err = -EINVAL;
                        goto err_sysfs;
-                       break;
                }
 
                num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i;