提交 54828d19 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

[media] lgdt330x: warn on errors blasting modulation config to the lgdt3303

fix the following build warning:

lgdt330x.c: In function "lgdt330x_set_parameters":
lgdt330x.c:346:6: warning: variable "err" set but not used
[-Wunused-but-set-variable]
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 26110dac
...@@ -347,7 +347,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe, ...@@ -347,7 +347,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
static u8 top_ctrl_cfg[] = { TOP_CONTROL, 0x03 }; static u8 top_ctrl_cfg[] = { TOP_CONTROL, 0x03 };
int err; int err = 0;
/* Change only if we are actually changing the modulation */ /* Change only if we are actually changing the modulation */
if (state->current_modulation != param->u.vsb.modulation) { if (state->current_modulation != param->u.vsb.modulation) {
switch(param->u.vsb.modulation) { switch(param->u.vsb.modulation) {
...@@ -402,6 +402,11 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe, ...@@ -402,6 +402,11 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
printk(KERN_WARNING "lgdt330x: %s: Modulation type(%d) UNSUPPORTED\n", __func__, param->u.vsb.modulation); printk(KERN_WARNING "lgdt330x: %s: Modulation type(%d) UNSUPPORTED\n", __func__, param->u.vsb.modulation);
return -1; return -1;
} }
if (err < 0)
printk(KERN_WARNING "lgdt330x: %s: error blasting "
"bytes to lgdt3303 for modulation type(%d)\n",
__func__, param->u.vsb.modulation);
/* /*
* select serial or parallel MPEG harware interface * select serial or parallel MPEG harware interface
* Serial: 0x04 for LGDT3302 or 0x40 for LGDT3303 * Serial: 0x04 for LGDT3302 or 0x40 for LGDT3303
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册