Commit 7b2dd6d2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Matt Fleming

efi: remove "kfree(NULL)"

No need to free a NULL pointer.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 85c90716
......@@ -419,10 +419,8 @@ efivar_create_sysfs_entry(struct efivar_entry *new_var)
short_name = kzalloc(short_name_size, GFP_KERNEL);
if (!short_name) {
kfree(short_name);
if (!short_name)
return 1;
}
/* Convert Unicode to normal chars (assume top bits are 0),
ala UTF-8 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment