]> Pileus Git - ~andy/linux/blobdiff - drivers/media/common/tuners/tuner-xc2028.c
[media] tuner-xc2028: add missing else case
[~andy/linux] / drivers / media / common / tuners / tuner-xc2028.c
index 9e602856b2faee5817ec9d6abc88cee00e359c4f..49e63ec040b60f9e451b4c539e79bba45e86721d 100644 (file)
@@ -978,7 +978,7 @@ static int xc2028_get_afc(struct dvb_frontend *fe, s32 *afc)
        /* Get AFC */
        rc = xc2028_get_reg(priv, XREG_FREQ_ERROR, &afc_reg);
        if (rc < 0)
-               return rc;
+               goto ret;
 
        *afc = afc_reg * 15625; /* Hz */
 
@@ -1414,8 +1414,8 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
                        tuner_err("Failed to request firmware %s\n",
                                  priv->fname);
                        priv->state = XC2028_NODEV;
-               }
-               priv->state = XC2028_WAITING_FIRMWARE;
+               } else
+                       priv->state = XC2028_WAITING_FIRMWARE;
        }
        mutex_unlock(&priv->lock);