[media] horus3a: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 12 Aug 2015 07:14:28 +0000 (04:14 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 16 Aug 2015 16:30:25 +0000 (13:30 -0300)
Shut up this compiler warning that I get during the daily build:

horus3a.c: In function 'horus3a_set_params':
horus3a.c:308:24: warning: 'rolloff' may be used uninitialized in this function [-Wmaybe-uninitialized]
     symbol_rate * (100 + rolloff), 200000) + 5;
                        ^

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/horus3a.c

index 5074305b289ecaf55b9d0641371d6e7d148f7503..000606af70f7461def1f187521e6ce12d191b6a7 100644 (file)
@@ -285,6 +285,7 @@ static int horus3a_set_params(struct dvb_frontend *fe)
                        rolloff = 20;
                        break;
                case ROLLOFF_AUTO:
+               default:
                        dev_err(&priv->i2c->dev,
                                "horus3a: auto roll-off is not supported\n");
                        return -EINVAL;