diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-02-13 17:16:36 +0900 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-03-04 16:17:20 +0000 |
commit | 69e608411473ac56358ef35277563982d0565381 (patch) | |
tree | bdc2733b8a1869aaac65e542df8051bb46a76109 /drivers/firmware/efi/efivars.c | |
parent | 092063808c498eccac8e891973bf143e7b60d723 (diff) | |
download | blackbird-op-linux-69e608411473ac56358ef35277563982d0565381.tar.gz blackbird-op-linux-69e608411473ac56358ef35277563982d0565381.zip |
efi: Use NULL instead of 0 for pointer
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>
Diffstat (limited to 'drivers/firmware/efi/efivars.c')
-rw-r--r-- | drivers/firmware/efi/efivars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c index 3dc248239197..50ea412a25e6 100644 --- a/drivers/firmware/efi/efivars.c +++ b/drivers/firmware/efi/efivars.c @@ -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; |