changeset 35217:c45cbe0d8ce1

Only -1 is certain to never be a valid file descriptor.
author reimar
date Wed, 31 Oct 2012 19:47:15 +0000
parents 4c2104e9e0d1
children 03021b062140
files vidix/sysdep/pci_linux.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/sysdep/pci_linux.c	Wed Oct 31 19:44:56 2012 +0000
+++ b/vidix/sysdep/pci_linux.c	Wed Oct 31 19:47:15 2012 +0000
@@ -180,7 +180,7 @@
     } else {
 	    retval = 0xFFFF;
     }
-    if (fd > 0) {
+    if (fd != -1) {
 	    close(fd);
     }
     return retval;