aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2016-02-01 22:07:02 +0000
committerIngo Molnar <[email protected]>2016-02-03 11:41:19 +0100
commit9c09a342eb27902955ca939bd6ba29d875bd8b6b (patch)
tree44350696b238206e4d19788137c2c0509ee7c5ac
parent1bb6936473c07b5a7c8daced1000893b7145bb14 (diff)
efivars: Use to_efivar_entry
Use to_efivar_entry() instead of open-coding it. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Matt Fleming <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--drivers/firmware/efi/efivars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c
index 756eca8c4cf8..c5b0d2bc1111 100644
--- a/drivers/firmware/efi/efivars.c
+++ b/drivers/firmware/efi/efivars.c
@@ -386,7 +386,7 @@ static const struct sysfs_ops efivar_attr_ops = {
static void efivar_release(struct kobject *kobj)
{
- struct efivar_entry *var = container_of(kobj, struct efivar_entry, kobj);
+ struct efivar_entry *var = to_efivar_entry(kobj);
kfree(var);
}