diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-30 15:21:09 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-12-24 01:27:25 +0100 |
commit | db6d9c4412747e14fa2d96c50be152f16844ceb2 (patch) | |
tree | 11ec10ba19cde4110f8361e896f280269af206e2 /drivers/media | |
parent | 84b2efbc6d74d48d630581c860e700cbbac7b50c (diff) |
tc358743_h2c: fix compiler warnings
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit d61dc8298834df8c65615a649f47e40a711521af)
(cherry picked from commit fa98ab80ed95c4578d6723bb1db1af65843bebbe)
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/mxc/capture/tc358743_h2c.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/platform/mxc/capture/tc358743_h2c.c b/drivers/media/platform/mxc/capture/tc358743_h2c.c index f1de64dcc3d6..daf8b436b337 100644 --- a/drivers/media/platform/mxc/capture/tc358743_h2c.c +++ b/drivers/media/platform/mxc/capture/tc358743_h2c.c @@ -2762,7 +2762,7 @@ static int tc358743_audio_list[16] = }; static char str_on[80]; -static report_netlink(void) +static void report_netlink(void) { char *envp[2]; envp[0] = &str_on[0]; @@ -2784,7 +2784,7 @@ static void det_worker(struct work_struct *work) reg = 0x8621; ret = tc358743_read_reg(reg, &u32val); if (ret > 0) { - if (audio != ((unsigned char)u32val) & 0x0f) { + if (audio != (((unsigned char)u32val) & 0x0f)) { audio = ((unsigned char)u32val) & 0x0f; report_netlink(); } @@ -2829,9 +2829,10 @@ static void det_worker(struct work_struct *work) } reg = 0x8621; ret = tc358743_read_reg(reg, &u32val); - if (ret > 0) + if (ret > 0) { audio = ((unsigned char)u32val) & 0x0f; - report_netlink(); + report_netlink(); + } } break; } |