1
0
Fork 0

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>
pull/10/head
Laurentiu Palcu 2018-11-14 15:06:12 +02:00
parent 2036a2a4ea
commit 228eebe7be
1 changed files with 2 additions and 1 deletions

View File

@ -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) {