From: Matthew Wilcox Date: Tue, 22 Jul 2008 18:37:17 +0000 (-0600) Subject: PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot X-Git-Tag: v2.6.27-rc1~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362b7077a5546b42131af15ba4776f30c9a72d0c;p=pandora-kernel.git 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 Signed-off-by: Matthew Wilcox Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed