Skip to content

Commit

Permalink
x86/efi: Fix config_table_type array termination
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leif Lindholm authored and Matt Fleming committed Oct 4, 2013
1 parent 0ce6cda commit 722da9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/platform/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static __initdata efi_config_table_type_t arch_tables[] = {
#ifdef CONFIG_X86_UV
{UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab},
#endif
{NULL_GUID, NULL, 0},
{NULL_GUID, NULL, NULL},
};

/*
Expand Down

0 comments on commit 722da9d

Please sign in to comment.