summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vme/devices/vme_user.c
diff options
context:
space:
mode:
authorTom Jorquera <tom.jorquera@gmail.com>2014-07-23 18:17:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-23 18:21:59 -0700
commite20487e52be0cd26aefe3681362b4d3c4c3deb5a (patch)
treec31f4ac039a33a16e4e4b4f989ec36c9f2fdeff6 /drivers/staging/vme/devices/vme_user.c
parent6b866095276690ea5018d9d604ecba1cd04c2023 (diff)
downloadop-kernel-dev-e20487e52be0cd26aefe3681362b4d3c4c3deb5a.zip
op-kernel-dev-e20487e52be0cd26aefe3681362b4d3c4c3deb5a.tar.gz
staging: vme: removed useless breaks in vme_user.c
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>
Diffstat (limited to 'drivers/staging/vme/devices/vme_user.c')
-rw-r--r--drivers/staging/vme/devices/vme_user.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
index 2d84972..920e50a 100644
--- a/drivers/staging/vme/devices/vme_user.c
+++ b/drivers/staging/vme/devices/vme_user.c
@@ -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;
OpenPOWER on IntegriCloud