mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -342,10 +342,9 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
|
||||
|
||||
return fd;
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user