From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933057AbcBCLsp (ORCPT ); Wed, 3 Feb 2016 06:48:45 -0500 Received: from terminus.zytor.com ([198.137.202.10]:55641 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755386AbcBCLdb (ORCPT ); Wed, 3 Feb 2016 06:33:31 -0500 Date: Wed, 3 Feb 2016 03:33:10 -0800 From: tip-bot for Geliang Tang Message-ID: Cc: matt@codeblueprint.co.uk, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, geliangtang@163.com Reply-To: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, matt@codeblueprint.co.uk, geliangtang@163.com, linux-kernel@vger.kernel.org In-Reply-To: <1454364428-494-9-git-send-email-matt@codeblueprint.co.uk> References: <1454364428-494-9-git-send-email-matt@codeblueprint.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efivars: Use to_efivar_entry Git-Commit-ID: 9c09a342eb27902955ca939bd6ba29d875bd8b6b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 9c09a342eb27902955ca939bd6ba29d875bd8b6b Gitweb: http://git.kernel.org/tip/9c09a342eb27902955ca939bd6ba29d875bd8b6b Author: Geliang Tang AuthorDate: Mon, 1 Feb 2016 22:07:02 +0000 Committer: Ingo Molnar CommitDate: Wed, 3 Feb 2016 11:41:19 +0100 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 --- drivers/firmware/efi/efivars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c index 756eca8..c5b0d2b 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); }