diff options
author | Oliver McFadden <oliver.mcfadden@nokia.com> | 2009-07-16 17:51:08 +0300 |
---|---|---|
committer | Oliver McFadden <oliver.mcfadden@nokia.com> | 2009-07-16 17:53:35 +0300 |
commit | 464e8ad733fa6afee028607d6e7d4663b4c273cc (patch) | |
tree | f4d85a3bff92ad27ff0b1bb57dfebe7c9ba55cf8 /hw | |
parent | 53ae6b63387e04324b23b6f8311cc22a154c1fb8 (diff) |
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);
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/fbdevhw/fbdevhw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index a58549114..2b7e36a24 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -342,10 +342,9 @@ fbdev_open_pci(struct pci_device * pPci, char **namep) return fd; } + close(fd); } } - - close(fd); } |