staging: unisys: get rid of goto in visorchipset_open()
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>
This commit is contained in:
parent
9982937a2a
commit
11f8ac08e9
|
@ -103,17 +103,12 @@ static int
|
||||||
visorchipset_open(struct inode *inode, struct file *file)
|
visorchipset_open(struct inode *inode, struct file *file)
|
||||||
{
|
{
|
||||||
unsigned minor_number = iminor(inode);
|
unsigned minor_number = iminor(inode);
|
||||||
int rc = -ENODEV;
|
|
||||||
|
|
||||||
DEBUGDRV("%s", __func__);
|
DEBUGDRV("%s", __func__);
|
||||||
if (minor_number != 0)
|
if (minor_number != 0)
|
||||||
goto Away;
|
return -ENODEV;
|
||||||
file->private_data = NULL;
|
file->private_data = NULL;
|
||||||
rc = 0;
|
return 0;
|
||||||
Away:
|
|
||||||
if (rc < 0)
|
|
||||||
ERRDRV("%s minor=%d failed", __func__, minor_number);
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue