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

Commit a5dab869 authored by Peter Rosin's avatar Peter Rosin Committed by Wolfram Sang
Browse files

i2c: hix5hd2: remove some dead code



The else branch cannot be taken as i will always equal num.
Get rid of the whole construct.

Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 04305627
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -377,17 +377,7 @@ static int hix5hd2_i2c_xfer(struct i2c_adapter *adap,
			goto out;
	}

	if (i == num) {
	ret = num;
	} else {
		/* Only one message, cannot access the device */
		if (i == 1)
			ret = -EREMOTEIO;
		else
			ret = i;

		dev_warn(priv->dev, "xfer message failed\n");
	}

out:
	pm_runtime_mark_last_busy(priv->dev);