提交 38e6a417 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] horus3a: fix compiler warning

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: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 82fde1a9
...@@ -285,6 +285,7 @@ static int horus3a_set_params(struct dvb_frontend *fe) ...@@ -285,6 +285,7 @@ static int horus3a_set_params(struct dvb_frontend *fe)
rolloff = 20; rolloff = 20;
break; break;
case ROLLOFF_AUTO: case ROLLOFF_AUTO:
default:
dev_err(&priv->i2c->dev, dev_err(&priv->i2c->dev,
"horus3a: auto roll-off is not supported\n"); "horus3a: auto roll-off is not supported\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册