Commit f5ca8c24 authored by Peter Senna Tschudin's avatar Peter Senna Tschudin Committed by Mauro Carvalho Chehab

[media] fc001[23]: Change variable type to bool

The variable vco_select is only assigned the values true and false.
Change its type to bool.
The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):
@exists@
type T;
identifier b;
@@
- T
+ bool
  b = ...;
  ... when any
  b = \(true\|false\)
Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Acked-by: default avatarHans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 503f2de7
...@@ -139,7 +139,7 @@ static int fc0012_set_params(struct dvb_frontend *fe) ...@@ -139,7 +139,7 @@ static int fc0012_set_params(struct dvb_frontend *fe)
unsigned char reg[7], am, pm, multi, tmp; unsigned char reg[7], am, pm, multi, tmp;
unsigned long f_vco; unsigned long f_vco;
unsigned short xtal_freq_khz_2, xin, xdiv; unsigned short xtal_freq_khz_2, xin, xdiv;
int vco_select = false; bool vco_select = false;
if (fe->callback) { if (fe->callback) {
ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
......
...@@ -233,7 +233,7 @@ static int fc0013_set_params(struct dvb_frontend *fe) ...@@ -233,7 +233,7 @@ static int fc0013_set_params(struct dvb_frontend *fe)
unsigned char reg[7], am, pm, multi, tmp; unsigned char reg[7], am, pm, multi, tmp;
unsigned long f_vco; unsigned long f_vco;
unsigned short xtal_freq_khz_2, xin, xdiv; unsigned short xtal_freq_khz_2, xin, xdiv;
int vco_select = false; bool vco_select = false;
if (fe->callback) { if (fe->callback) {
ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment