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
parent
2036a2a4ea
commit
228eebe7be
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue