commit | 362b7077a5546b42131af15ba4776f30c9a72d0c | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <matthew@wil.cx> | Tue Jul 22 12:37:17 2008 -0600 |
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | Mon Jul 28 15:06:00 2008 -0700 |
tree | 59639d9cc02288f601cb7b9c3188053916e8d1a3 | |
parent | d6d385743463f38a0da899cd4607e526ad9a049f [diff] |
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>