From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Carlos Aguiar <carlos.aguiar@indt.org.br>
Cc: linux-kernel@vger.kernel.org,
linux-omap-open-source@linux.omap.com,
David Brownell <david-b@pacbell.net>,
Tony Lindgren <tony@atomide.com>,
Russell King <rmk+lkml@arm.linux.org.uk>,
ilias.biris@indt.org.br
Subject: Re: [patch 2/6] [RFC] Add MMC Password Protection (lock/unlock) support V5
Date: Sun, 29 Oct 2006 10:31:59 +0100 [thread overview]
Message-ID: <4544750F.4000301@drzeus.cx> (raw)
In-Reply-To: <20061020165134.378993000@localhost.localdomain>
Carlos Aguiar wrote:
> +int mmc_key_instantiate(struct key *key, const void *data, size_t datalen)
>
static
> +int mmc_key_match(const struct key *key, const void *description)
>
static
> +void mmc_key_destroy(struct key *key)
>
static
> @@ -335,6 +403,15 @@ static int __init mmc_init(void)
> ret = class_register(&mmc_host_class);
> if (ret)
> bus_unregister(&mmc_bus_type);
> +#ifdef CONFIG_MMC_PASSWORDS
> + else {
> + ret = register_key_type(&mmc_key_type);
> + if (ret) {
> + class_unregister(&mmc_host_class);
> + bus_unregister(&mmc_bus_type);
> + }
> + }
> +#endif
> }
> return ret;
> }
>
We're starting to get a bit of code duplication here. Perhaps an error
handling section at the end of the function would be better.
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
next prev parent reply other threads:[~2006-10-29 9:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20061020164914.012378000@localhost.localdomain>
2006-10-23 6:03 ` [patch 0/6] [RFC] Add MMC Password Protection (lock/unlock) support V5 Pierre Ossman
2006-10-23 16:44 ` Russell King
[not found] ` <20061020165131.681329000@localhost.localdomain>
2006-10-29 9:26 ` [patch 1/6] " Pierre Ossman
[not found] ` <20061020165134.378993000@localhost.localdomain>
2006-10-29 9:31 ` Pierre Ossman [this message]
[not found] ` <20061020165135.162482000@localhost.localdomain>
2006-10-29 9:49 ` [patch 3/6] " Pierre Ossman
2006-10-30 2:06 ` David Brownell
[not found] ` <20061020165135.852337000@localhost.localdomain>
2006-10-29 9:52 ` [patch 4/6] " Pierre Ossman
[not found] ` <20061020165136.664879000@localhost.localdomain>
2006-10-29 9:57 ` [patch 5/6] " Pierre Ossman
[not found] ` <20061020165139.911232000@localhost.localdomain>
2006-10-29 9:57 ` [patch 6/6] " Pierre Ossman
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=4544750F.4000301@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=carlos.aguiar@indt.org.br \
--cc=david-b@pacbell.net \
--cc=ilias.biris@indt.org.br \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap-open-source@linux.omap.com \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.