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:
Oliver McFadden 2009-07-16 17:51:08 +03:00
parent 53ae6b6338
commit 464e8ad733

View File

@ -342,10 +342,9 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
return fd;
}
close(fd);
}
}
close(fd);
}