Staging: ipack/bridges/tpci200: remove "out" label in tpci200_request_irq()
Remove the "out" label from tpci200_request_irq(), 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
14d9f9a3e1
commit
f7986a9e73
1 changed files with 4 additions and 9 deletions
|
@ -705,15 +705,11 @@ static int tpci200_request_irq(struct ipack_device *dev, int vector,
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tpci200->slots[dev->slot].irq != NULL) {
|
if (tpci200->slots[dev->slot].irq != NULL) {
|
||||||
dev_err(&dev->dev,
|
dev_err(&dev->dev,
|
||||||
|
@ -747,7 +743,6 @@ static int tpci200_request_irq(struct ipack_device *dev, int vector,
|
||||||
|
|
||||||
out_unlock:
|
out_unlock:
|
||||||
mutex_unlock(&tpci200->mutex);
|
mutex_unlock(&tpci200->mutex);
|
||||||
out:
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue