diff options
author | Antti Palosaari <crope@iki.fi> | 2011-05-25 17:25:53 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:52:17 -0300 |
commit | 050bf0faa833028f30ed3ad6a8fc5e51994dabfe (patch) | |
tree | a8f607e055ade60140316de737cd7944ff9d7675 /drivers/media/dvb | |
parent | 58b0ed25b6e9d6dbf00c30b816e8a2a0fec2bec8 (diff) | |
download | op-kernel-dev-050bf0faa833028f30ed3ad6a8fc5e51994dabfe.zip op-kernel-dev-050bf0faa833028f30ed3ad6a8fc5e51994dabfe.tar.gz |
[media] cxd2820r: correct missing error checks
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/cxd2820r_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_core.c b/drivers/media/dvb/frontends/cxd2820r_core.c index 903cbdb..d416e85 100644 --- a/drivers/media/dvb/frontends/cxd2820r_core.c +++ b/drivers/media/dvb/frontends/cxd2820r_core.c @@ -314,6 +314,8 @@ static int cxd2820r_set_frontend(struct dvb_frontend *fe, } else if (c->delivery_system == SYS_DVBT2) { /* DVB-T => DVB-T2 */ ret = cxd2820r_sleep_t(fe); + if (ret) + break; ret = cxd2820r_set_frontend_t2(fe, p); } break; @@ -324,6 +326,8 @@ static int cxd2820r_set_frontend(struct dvb_frontend *fe, } else if (c->delivery_system == SYS_DVBT) { /* DVB-T2 => DVB-T */ ret = cxd2820r_sleep_t2(fe); + if (ret) + break; ret = cxd2820r_set_frontend_t(fe, p); } break; |