summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-07-22 20:37:17 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-29 00:06:00 +0200
commit362b7077a5546b42131af15ba4776f30c9a72d0c (patch)
tree59639d9cc02288f601cb7b9c3188053916e8d1a3 /drivers/video
parentPCI: add an option to allow ASPM enabled forcibly (diff)
downloadlinux-362b7077a5546b42131af15ba4776f30c9a72d0c.tar.xz
linux-362b7077a5546b42131af15ba4776f30c9a72d0c.zip
PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot
I get warnings about 'device' possibly being used uninitialised. While I can deduce this is not true, it seems that GCC can't. This patch changes `check_slot' to return device on success and -1 on error, which shuts GCC up. Acked-by: Alex Chiang <achiang@hp.com> Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions