summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2011-11-01 03:29:17 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-07 16:36:07 +0100
commit2f4133de28edafcaac3ce6b57faf8f40ed2ff1b9 (patch)
tree46c67cace85887bef3af32fabcd34fb65aa8d65e /drivers/media/dvb
parent[media] mxl111sf: fix return value of mxl111sf_idac_config (diff)
downloadlinux-2f4133de28edafcaac3ce6b57faf8f40ed2ff1b9.tar.xz
linux-2f4133de28edafcaac3ce6b57faf8f40ed2ff1b9.zip
[media] mxl111sf: check for errors after mxl111sf_write_reg in mxl111sf_idac_config
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/mxl111sf-phy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/mxl111sf-phy.c b/drivers/media/dvb/dvb-usb/mxl111sf-phy.c
index ae8c2f839fcf..09787be576ac 100644
--- a/drivers/media/dvb/dvb-usb/mxl111sf-phy.c
+++ b/drivers/media/dvb/dvb-usb/mxl111sf-phy.c
@@ -328,9 +328,11 @@ int mxl111sf_idac_config(struct mxl111sf_state *state,
/* set hysteresis value reg: 0x0B<5:0> */
ret = mxl111sf_write_reg(state, V6_IDAC_HYSTERESIS_REG,
(hysteresis_value & 0x3F));
+ mxl_fail(ret);
}
ret = mxl111sf_write_reg(state, V6_IDAC_SETTINGS_REG, val);
+ mxl_fail(ret);
return ret;
}