Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
38e6a417 82fde1a9

+1
+1
drivers/media/dvb-frontends/horus3a.c
··· 285 285 rolloff = 20; 286 286 break; 287 287 case ROLLOFF_AUTO: 288 + default: 288 289 dev_err(&priv->i2c->dev, 289 290 "horus3a: auto roll-off is not supported\n"); 290 291 return -EINVAL;