mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 05:38:02 +02: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:
parent
53ae6b6338
commit
464e8ad733
1 changed files with 1 additions and 2 deletions
|
|
@ -342,10 +342,9 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
|
|||
|
||||
return fd;
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue