projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c9071
)
efi: remove "kfree(NULL)"
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 30 Apr 2013 07:43:44 +0000
(10:43 +0300)
committer
Matt Fleming
<matt.fleming@intel.com>
Tue, 30 Apr 2013 15:03:18 +0000
(16:03 +0100)
No need to free a NULL pointer.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/efi/efivars.c
b/drivers/firmware/efi/efivars.c
index
f8f5e5d
..
5e94897
100644
(file)
--- a/
drivers/firmware/efi/efivars.c
+++ b/
drivers/firmware/efi/efivars.c
@@
-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 */