mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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: Miguel Gómez <magomez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d3da090cd
commit
5e4be52398
@ -626,15 +626,11 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
|
||||
struct tpci200_board *tpci200;
|
||||
|
||||
tpci200 = check_slot(dev);
|
||||
if (tpci200 == NULL) {
|
||||
res = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
if (tpci200 == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
if (mutex_lock_interruptible(&tpci200->mutex)) {
|
||||
res = -ERESTARTSYS;
|
||||
goto out;
|
||||
}
|
||||
if (mutex_lock_interruptible(&tpci200->mutex))
|
||||
return -ERESTARTSYS;
|
||||
|
||||
switch (space) {
|
||||
case IPACK_IO_SPACE:
|
||||
@ -699,7 +695,6 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
|
||||
|
||||
out_unlock:
|
||||
mutex_unlock(&tpci200->mutex);
|
||||
out:
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user