Skip to content

Commit

Permalink
efi: Use NULL instead of 0 for pointer
Browse files Browse the repository at this point in the history
Fix following sparse warnings:

drivers/firmware/efi/efivars.c:230:66: warning:
 Using plain integer as NULL pointer
drivers/firmware/efi/efi.c:236:27: warning:
 Using plain integer as NULL pointer

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
  • Loading branch information
Daeseok Youn authored and Matt Fleming committed Mar 4, 2014
1 parent 0920638 commit 69e6084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/firmware/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static __initdata efi_config_table_type_t common_tables[] = {
{SAL_SYSTEM_TABLE_GUID, "SALsystab", &efi.sal_systab},
{SMBIOS_TABLE_GUID, "SMBIOS", &efi.smbios},
{UGA_IO_PROTOCOL_GUID, "UGA", &efi.uga},
{NULL_GUID, NULL, 0},
{NULL_GUID, NULL, NULL},
};

static __init int match_config_table(efi_guid_t *guid,
Expand Down
2 changes: 1 addition & 1 deletion drivers/firmware/efi/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ efivar_store_raw(struct efivar_entry *entry, const char *buf, size_t count)
memcpy(&entry->var, new_var, count);

err = efivar_entry_set(entry, new_var->Attributes,
new_var->DataSize, new_var->Data, false);
new_var->DataSize, new_var->Data, NULL);
if (err) {
printk(KERN_WARNING "efivars: set_variable() failed: status=%d\n", err);
return -EIO;
Expand Down

0 comments on commit 69e6084

Please sign in to comment.