提交 e20487e5 编写于 作者: T Tom Jorquera 提交者: Greg Kroah-Hartman

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: NTom Jorquera <tom.jorquera@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6b866095
...@@ -433,7 +433,6 @@ static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) ...@@ -433,7 +433,6 @@ static loff_t vme_user_llseek(struct file *file, loff_t off, int whence)
default: default:
mutex_unlock(&image[minor].mutex); mutex_unlock(&image[minor].mutex);
return -EINVAL; return -EINVAL;
break;
} }
if ((absolute < 0) || (absolute >= image_size)) { if ((absolute < 0) || (absolute >= image_size)) {
...@@ -511,7 +510,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file, ...@@ -511,7 +510,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
} }
return retval; return retval;
break;
case VME_SET_MASTER: case VME_SET_MASTER:
...@@ -552,7 +550,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file, ...@@ -552,7 +550,6 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
} }
return retval; return retval;
break;
case VME_SET_SLAVE: case VME_SET_SLAVE:
...@@ -806,7 +803,6 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -806,7 +803,6 @@ static int vme_user_probe(struct vme_dev *vdev)
default: default:
err = -EINVAL; err = -EINVAL;
goto err_sysfs; goto err_sysfs;
break;
} }
num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i; num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册