]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] tuner-xc2028: add missing else case
authorHans Petter Selasky <hselasky@c2i.net>
Fri, 3 Aug 2012 06:34:05 +0000 (03:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Aug 2012 08:43:44 +0000 (05:43 -0300)
>From 59306435992d9349f10ad82a8adf14d98becbbe8 Mon Sep 17 00:00:00 2001

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c

index ea0550eafe7d185f9d547a80af33cead4d007050..49e63ec040b60f9e451b4c539e79bba45e86721d 100644 (file)
@@ -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);