diff options
author | Laurentiu Palcu <laurentiu.palcu@nxp.com> | 2018-11-14 15:06:12 +0200 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:35:18 +0800 |
commit | 92a47c62b53ed5e5ac576de8db383f8728aeee1c (patch) | |
tree | 2f72c2ca7c1c57075f23ad9638f4478af8f27c99 /drivers/video | |
parent | f5efa2b652800ab1e6d700cf98e1751bc2b2df7b (diff) |
MLK-20216-6: video/fbdev/mxc_dcic: fix return value
This fixes Coverity issue where an unsigned variable is tested for
less-than-zero value.
Make val a signed integer instead.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Sandor Yu <sandor.yu@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/mxc/mxc_dcic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mxc/mxc_dcic.c b/drivers/video/fbdev/mxc/mxc_dcic.c index 3c5a83beeded..3e6824a00fb6 100644 --- a/drivers/video/fbdev/mxc/mxc_dcic.c +++ b/drivers/video/fbdev/mxc/mxc_dcic.c @@ -360,7 +360,8 @@ static int dcic_release(struct inode *inode, struct file *file) static int dcic_init(struct device_node *np, struct dcic_data *dcic) { - u32 val, bus; + int val; + u32 bus; val = of_get_dcic_val(np, dcic); if (val < 0) { |