提交 11f8ac08 编写于 作者: B Benjamin Romer 提交者: Greg Kroah-Hartman

staging: unisys: get rid of goto in visorchipset_open()

This goto uses CamelCase and was completely unnecessary.
Signed-off-by: NKen Depro <kenneth.depro@unisys.com>
Signed-off-by: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9982937a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册