* [PATCH] efivars: use to_efivar_entry
@ 2016-01-05 14:17 Geliang Tang
2016-01-08 11:47 ` Matt Fleming
0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2016-01-05 14:17 UTC (permalink / raw)
To: Matt Fleming; +Cc: Geliang Tang, linux-efi, linux-kernel
Use to_efivar_entry() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
---
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);
}
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] efivars: use to_efivar_entry
2016-01-05 14:17 [PATCH] efivars: use to_efivar_entry Geliang Tang
@ 2016-01-08 11:47 ` Matt Fleming
0 siblings, 0 replies; 2+ messages in thread
From: Matt Fleming @ 2016-01-08 11:47 UTC (permalink / raw)
To: Geliang Tang; +Cc: linux-efi, linux-kernel
On Tue, 05 Jan, at 10:17:17PM, Geliang Tang wrote:
> Use to_efivar_entry() instead of open-coding it.
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>
> ---
> drivers/firmware/efi/efivars.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied for v4.6.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-08 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 14:17 [PATCH] efivars: use to_efivar_entry Geliang Tang
2016-01-08 11:47 ` Matt Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).