Commit 5e4be523 authored by Miguel Gómez's avatar Miguel Gómez Committed by Greg Kroah-Hartman

Staging: ipack/bridges/tpci200: remove "out" label in tpci200_slot_map_space()

Remove the "out" label from tpci200_slot_map_space(), as it can directly return
the error code instead of jumping.
Signed-off-by: default avatarMiguel Gómez <magomez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d3da090
...@@ -626,15 +626,11 @@ static int tpci200_slot_map_space(struct ipack_device *dev, ...@@ -626,15 +626,11 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
struct tpci200_board *tpci200; struct tpci200_board *tpci200;
tpci200 = check_slot(dev); tpci200 = check_slot(dev);
if (tpci200 == NULL) { if (tpci200 == NULL)
res = -EINVAL; return -EINVAL;
goto out;
}
if (mutex_lock_interruptible(&tpci200->mutex)) { if (mutex_lock_interruptible(&tpci200->mutex))
res = -ERESTARTSYS; return -ERESTARTSYS;
goto out;
}
switch (space) { switch (space) {
case IPACK_IO_SPACE: case IPACK_IO_SPACE:
...@@ -699,7 +695,6 @@ static int tpci200_slot_map_space(struct ipack_device *dev, ...@@ -699,7 +695,6 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
out_unlock: out_unlock:
mutex_unlock(&tpci200->mutex); mutex_unlock(&tpci200->mutex);
out:
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment