From: Matt Fleming <matt@console-pimps.org>
To: "Geyslan G. Bem" <geyslan@gmail.com>
Cc: matthew.garrett@nebula.com, jk@ozlabs.org,
matt.fleming@intel.com, linux-efi@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-br@googlegroups.com
Subject: Re: [PATCH] efivarfs: 'efivarfs_file_write' function reorganization
Date: Wed, 30 Oct 2013 12:38:50 +0000 [thread overview]
Message-ID: <20131030123850.GA8193@console-pimps.org> (raw)
In-Reply-To: <1381775837-26023-1-git-send-email-geyslan@gmail.com>
On Mon, 14 Oct, at 03:37:17PM, Geyslan G. Bem wrote:
> This reorganization:
>
> Adds 'attrsize' variable to make the code cleaner and more
> understandable, replacing all 'sizeof(attributes)'.
>
> Removes 'bytes' prior assignment due this new approach.
>
> Uses 'memdup_user' instead 'kmalloc' + 'copy_from_user'.
>
> Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
> ---
> fs/efivarfs/file.c | 23 +++++++++--------------
> 1 file changed, 9 insertions(+), 14 deletions(-)
Hmm.. I'm not convinced this is much of an improvement. I think removing
'sizeof(attributes)' actually makes the code harder to read.
--
Matt Fleming, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-10-30 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 18:37 [PATCH] efivarfs: 'efivarfs_file_write' function reorganization Geyslan G. Bem
2013-10-30 12:38 ` Matt Fleming [this message]
2013-10-30 12:44 ` Geyslan Gregório Bem
2013-10-30 14:39 ` Matt Fleming
2013-10-30 19:13 ` Geyslan Gregório Bem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131030123850.GA8193@console-pimps.org \
--to=matt@console-pimps.org \
--cc=geyslan@gmail.com \
--cc=jk@ozlabs.org \
--cc=kernel-br@googlegroups.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=matthew.garrett@nebula.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox