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,10 +342,9 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
|
|||
|
||||
return fd;
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue