Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7986a9e authored by Miguel Gómez's avatar Miguel Gómez Committed by Greg Kroah-Hartman
Browse files

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: default avatarMiguel Gómez <magomez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 14d9f9a3
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -705,15 +705,11 @@ static int tpci200_request_irq(struct ipack_device *dev, int vector,
	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;

	if (tpci200->slots[dev->slot].irq != NULL) {
		dev_err(&dev->dev,
@@ -747,7 +743,6 @@ static int tpci200_request_irq(struct ipack_device *dev, int vector,

out_unlock:
	mutex_unlock(&tpci200->mutex);
out:
	return res;
}