Coverity Prevent: NEGATIVE_RETURNS in fbdev_open_pci:
Event var_tested_neg: Variable "fd" tested NEGATIVE At conditional (1): "fd != -1" taking false path 335 if (fd != -1) { Event negative_returns: Tracked variable "fd" was passed to a negative sink. 347 close(fd);
This commit is contained in:
parent
53ae6b6338
commit
464e8ad733
|
@ -342,11 +342,10 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* The other way is to examine the resources associated with each fb
|
/* The other way is to examine the resources associated with each fb
|
||||||
|
|
Loading…
Reference in New Issue