Skip to content

Commit

Permalink
[media] horus3a: fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Aug 16, 2015
1 parent 82fde1a commit 38e6a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/dvb-frontends/horus3a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38e6a41

Please sign in to comment.