public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - [12/15] - remove defconfig ptr comparisons to 0 - include/asm-x86
@ 2007-11-14  2:05 Joe Perches
  2007-11-14  2:55 ` Linus Torvalds
  2007-11-14 10:54 ` Thomas Gleixner
  0 siblings, 2 replies; 4+ messages in thread
From: Joe Perches @ 2007-11-14  2:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

Remove defconfig ptr comparison to 0

The memcpy from memory location 0 sure looks odd.

Remove sparse warning: Using plain integer as NULL pointer

Signed-off-by: Joe Perches <joe@perches.com>

---

diff --git a/include/asm-x86/mach-es7000/mach_mpparse.h b/include/asm-x86/mach-es7000/mach_mpparse.h
index 8aa1054..a1dd66f 100644
--- a/include/asm-x86/mach-es7000/mach_mpparse.h
+++ b/include/asm-x86/mach-es7000/mach_mpparse.h
@@ -29,7 +29,7 @@ extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
 static inline int es7000_check_dsdt(void)
 {
 	struct acpi_table_header header;
-	memcpy(&header, 0, sizeof(struct acpi_table_header));
+	memcpy(&header, (void *)0, sizeof(struct acpi_table_header));
 	acpi_get_table_header(ACPI_SIG_DSDT, 0, &header);
 	if (!strncmp(header.oem_id, "UNISYS", 6))
 		return 1;



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-14 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14  2:05 [PATCH] - [12/15] - remove defconfig ptr comparisons to 0 - include/asm-x86 Joe Perches
2007-11-14  2:55 ` Linus Torvalds
2007-11-14 10:54 ` Thomas Gleixner
2007-11-14 14:19   ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox