summaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
authorRandy Dunlap2005-10-31 00:03:29 +0100
committerLinus Torvalds2005-10-31 02:37:29 +0100
commit874ec33ff9ccf3651590697a2c2923b911bf31d0 (patch)
treea51bbb74c76f446342c26201b1e2c82c23c7706f /arch/i386
parent[PATCH] tpm-tidies (diff)
downloadkernel-qcow2-linux-874ec33ff9ccf3651590697a2c2923b911bf31d0.tar.gz
kernel-qcow2-linux-874ec33ff9ccf3651590697a2c2923b911bf31d0.tar.xz
kernel-qcow2-linux-874ec33ff9ccf3651590697a2c2923b911bf31d0.zip
[PATCH] sparse cleanups: NULL pointers, C99 struct init.
Convert most of the remaining "Using plain integer as NULL pointer" sparse warnings to use NULL. (Not duplicating patches that are already in -mm, -bird, or -kj.) Convert isdn driver struct initializer to use C99 syntax. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/kernel/reboot_fixups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/reboot_fixups.c b/arch/i386/kernel/reboot_fixups.c
index 1b183b378c2c..c9b87330aeea 100644
--- a/arch/i386/kernel/reboot_fixups.c
+++ b/arch/i386/kernel/reboot_fixups.c
@@ -44,7 +44,7 @@ void mach_reboot_fixups(void)
for (i=0; i < (sizeof(fixups_table)/sizeof(fixups_table[0])); i++) {
cur = &(fixups_table[i]);
- dev = pci_get_device(cur->vendor, cur->device, 0);
+ dev = pci_get_device(cur->vendor, cur->device, NULL);
if (!dev)
continue;