diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-10-30 18:03:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:29 -0500 |
commit | 874ec33ff9ccf3651590697a2c2923b911bf31d0 (patch) | |
tree | a51bbb74c76f446342c26201b1e2c82c23c7706f /arch/i386/kernel | |
parent | b888c87b7498557d1dbb9de3d4b8402b1bb89193 (diff) |
[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/kernel')
-rw-r--r-- | arch/i386/kernel/reboot_fixups.c | 2 |
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) | |||
44 | 44 | ||
45 | for (i=0; i < (sizeof(fixups_table)/sizeof(fixups_table[0])); i++) { | 45 | for (i=0; i < (sizeof(fixups_table)/sizeof(fixups_table[0])); i++) { |
46 | cur = &(fixups_table[i]); | 46 | cur = &(fixups_table[i]); |
47 | dev = pci_get_device(cur->vendor, cur->device, 0); | 47 | dev = pci_get_device(cur->vendor, cur->device, NULL); |
48 | if (!dev) | 48 | if (!dev) |
49 | continue; | 49 | continue; |
50 | 50 | ||