diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2009-08-16 19:11:15 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2009-08-16 19:11:15 +0300 |
commit | ef8aca5da46155e9ea0d1227215921ad9ce59150 (patch) | |
tree | e658227b8d3367a9d7f2a944d61d19c16d83b99c | |
parent | 25be96885671d22ee3f932769d72cf3a31f355ee (diff) |
vgaarb: fix pci_device_vgaarb_get_info() return value.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
-rw-r--r-- | src/common_vgaarb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index a40b064..b7ef021 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -317,7 +317,7 @@ int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count, int *rsrc { *vga_count = pci_sys->vga_count; if (!dev) - return 0; + return -1; *rsrc_decodes = dev->vgaarb_rsrc; return 0; |