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

Commit 9240c384 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] m88ds3103: do not return error from get_frontend() when not ready



Do not return error from get_frontend() when status is queried, but
the frontend didn't lock yet. The proper behavior is to only update the
cache after having a lock.

[mchehab@osg.samsung.com: fix the patch description]
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent d8fd9f56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -742,7 +742,7 @@ static int m88ds3103_get_frontend(struct dvb_frontend *fe)
	dev_dbg(&priv->i2c->dev, "%s:\n", __func__);

	if (!priv->warm || !(priv->fe_status & FE_HAS_LOCK)) {
		ret = -EAGAIN;
		ret = 0;
		goto err;
	}