From: Geliang Tang Date: Mon, 1 Feb 2016 22:07:02 +0000 (+0000) Subject: efivars: Use to_efivar_entry X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c09a342eb27902955ca939bd6ba29d875bd8b6b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git efivars: Use to_efivar_entry Use to_efivar_entry() instead of open-coding it. Signed-off-by: Geliang Tang Signed-off-by: Matt Fleming Link: http://lkml.kernel.org/r/1454364428-494-9-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar --- 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); }