Commit cf8e193a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (10248): v4l-dvb: fix a bunch of compile warnings.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 32929fb4
...@@ -657,7 +657,7 @@ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) ...@@ -657,7 +657,7 @@ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status)
{ {
struct mxl5007t_state *state = fe->tuner_priv; struct mxl5007t_state *state = fe->tuner_priv;
int rf_locked, ref_locked; int rf_locked, ref_locked;
s32 rf_input_level; s32 rf_input_level = 0;
int ret; int ret;
if (fe->ops.i2c_gate_ctrl) if (fe->ops.i2c_gate_ctrl)
......
...@@ -220,7 +220,7 @@ static int af9005_get_post_vit_ber(struct dvb_frontend *fe, ...@@ -220,7 +220,7 @@ static int af9005_get_post_vit_ber(struct dvb_frontend *fe,
u16 * abort_count) u16 * abort_count)
{ {
u32 loc_cw_count = 0, loc_err_count; u32 loc_cw_count = 0, loc_err_count;
u16 loc_abort_count; u16 loc_abort_count = 0;
int ret; int ret;
ret = ret =
......
...@@ -646,7 +646,7 @@ static int drx_tune(struct drx397xD_state *s, ...@@ -646,7 +646,7 @@ static int drx_tune(struct drx397xD_state *s,
u32 edi = 0, ebx = 0, ebp = 0, edx = 0; u32 edi = 0, ebx = 0, ebp = 0, edx = 0;
u16 v20 = 0, v1E = 0, v16 = 0, v14 = 0, v12 = 0, v10 = 0, v0E = 0; u16 v20 = 0, v1E = 0, v16 = 0, v14 = 0, v12 = 0, v10 = 0, v0E = 0;
int rc, df_tuner; int rc, df_tuner = 0;
int a, b, c, d; int a, b, c, d;
pr_debug("%s %d\n", __func__, s->config.d60); pr_debug("%s %d\n", __func__, s->config.d60);
......
...@@ -1384,7 +1384,7 @@ static int ttusb_dec_boot_dsp(struct ttusb_dec *dec) ...@@ -1384,7 +1384,7 @@ static int ttusb_dec_boot_dsp(struct ttusb_dec *dec)
static int ttusb_dec_init_stb(struct ttusb_dec *dec) static int ttusb_dec_init_stb(struct ttusb_dec *dec)
{ {
int result; int result;
unsigned int mode, model, version; unsigned int mode = 0, model = 0, version = 0;
dprintk("%s\n", __func__); dprintk("%s\n", __func__);
......
...@@ -242,7 +242,7 @@ static int tda9875_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl) ...@@ -242,7 +242,7 @@ static int tda9875_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
static int tda9875_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl) static int tda9875_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
{ {
struct tda9875 *t = to_state(sd); struct tda9875 *t = to_state(sd);
int chvol=0, volume, balance, left, right; int chvol = 0, volume = 0, balance = 0, left, right;
switch (ctrl->id) { switch (ctrl->id) {
case V4L2_CID_AUDIO_VOLUME: case V4L2_CID_AUDIO_VOLUME:
......
...@@ -157,7 +157,7 @@ usbvision_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) ...@@ -157,7 +157,7 @@ usbvision_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
struct i2c_msg *pmsg; struct i2c_msg *pmsg;
struct usb_usbvision *usbvision; struct usb_usbvision *usbvision;
int i, ret; int i, ret;
unsigned char addr; unsigned char addr = 0;
usbvision = (struct usb_usbvision *)i2c_get_adapdata(i2c_adap); usbvision = (struct usb_usbvision *)i2c_get_adapdata(i2c_adap);
......
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