diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-30 15:21:09 -0700 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2020-08-13 16:04:34 +0200 |
commit | 49c12e3cd507af6860d6b63b7e2aca0e3066c1e7 (patch) | |
tree | 354d7faff4ca0560c22b9e1fe9849eeedf7b3509 /drivers/media | |
parent | de4e89d618e2aaa93dd71dc3479f2226ce94ebe1 (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)
(cherry picked from commit 2a34d395412391a06930f93a0e7221a659f3bab9)
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; } |