]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (7843): tda18271: fix error handling in tda18271c1_rf_tracking_filter_calibration
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 4 May 2008 23:26:47 +0000 (20:26 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:54:06 +0000 (02:54 -0300)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/tuners/tda18271-fe.c

index 8b44d4c62bfe5dc6340aa7129fa23bc4577988f5..13d651c987a3d10ed2e1b66e4af35ff6195b6741 100644 (file)
@@ -665,6 +665,7 @@ static int tda18271c1_rf_tracking_filter_calibration(struct dvb_frontend *fe,
 {
        struct tda18271_priv *priv = fe->tuner_priv;
        unsigned char *regs = priv->tda18271_regs;
+       int ret;
        u32 N = 0;
 
        /* calculate bp filter */
@@ -713,7 +714,10 @@ static int tda18271c1_rf_tracking_filter_calibration(struct dvb_frontend *fe,
 
        tda18271_calc_main_pll(fe, N);
 
-       tda18271_write_regs(fe, R_EP3, 11);
+       ret = tda18271_write_regs(fe, R_EP3, 11);
+       if (ret < 0)
+               return ret;
+
        msleep(5); /* RF tracking filter calibration initialization */
 
        /* search for K,M,CO for RF calibration */