diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2013-10-03 10:42:37 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-10-04 15:04:45 -0400 |
commit | 722da9d20e7f203ddbb54aba32f95a020d41fc42 (patch) | |
tree | 1a75946f580dbc5daab91681c3c133296ee20745 | |
parent | 0ce6cda2c75d64175394341ef60e6e1d27dd9c10 (diff) |
x86/efi: Fix config_table_type array termination
Incorrect use of 0 in terminating entry of arch_tables[] causes the
following sparse warning,
arch/x86/platform/efi/efi.c:74:27: sparse: Using plain integer as NULL pointer
Replace with NULL.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
[ Included sparse warning in commit message. ]
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | arch/x86/platform/efi/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index fbc1d70188f8..1d3372ac9c66 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
@@ -71,7 +71,7 @@ static __initdata efi_config_table_type_t arch_tables[] = { | |||
71 | #ifdef CONFIG_X86_UV | 71 | #ifdef CONFIG_X86_UV |
72 | {UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab}, | 72 | {UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab}, |
73 | #endif | 73 | #endif |
74 | {NULL_GUID, NULL, 0}, | 74 | {NULL_GUID, NULL, NULL}, |
75 | }; | 75 | }; |
76 | 76 | ||
77 | /* | 77 | /* |