summaryrefslogtreecommitdiff
path: root/src/common_vgaarb.c
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2009-09-18 15:21:19 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2009-09-18 15:27:52 +0300
commit1714046ef08ef685bcf1d6c154e64809b12e8d7f (patch)
tree73096b8991b3d34662415fad94ac2adf5d263afe /src/common_vgaarb.c
parent13c7e6c8f100882718f995f5bf1d478a012cdbdd (diff)
downloadlibpciaccess-1714046ef08ef685bcf1d6c154e64809b12e8d7f.tar.gz
libpciaccess-1714046ef08ef685bcf1d6c154e64809b12e8d7f.tar.bz2
libpciaccess-1714046ef08ef685bcf1d6c154e64809b12e8d7f.zip
vgaarb: fix newbie typo
Eh, we don't need to check for the fd anyway. Kudos jcristau for reporting. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Diffstat (limited to 'src/common_vgaarb.c')
-rw-r--r--src/common_vgaarb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c
index f1c71e0..6358a66 100644
--- a/src/common_vgaarb.c
+++ b/src/common_vgaarb.c
@@ -153,9 +153,6 @@ pci_device_vgaarb_fini(void)
if (!pci_sys)
return;
- if (!pci_sys->vgaarb_fd)
- return;
-
close(pci_sys->vgaarb_fd);
}