Re: [PATCH RFT] MMC: core/core.c: mmc_rescan detects card change inone run

From: Pierre Ossman
Date: Tue Mar 03 2009 - 03:55:44 EST


On Tue, 03 Mar 2009 09:24:19 +0200
JÃrg Schummer <ext-jorg.2.schummer@xxxxxxxxx> wrote:

> >
> > The else section got a bit small here with that code removed. Perhaps
> > we should instead have:
> >
> > if (host->bus_ops != NULL) {
> > mmc_bus_put(host);
> > goto out;
> > }
>
> I guess you meant
>
> else {
> mmc_bus_put(host);
> goto out;
> }
>
> since it would be the else clause of
>
> if (host->bus_ops == NULL)
>

No, I meant to put it further up and unindent the detection code.
Basically you'll be reversing the if-else blocks, but using a goto
instead of an else.

Rgds
--
-- Pierre Ossman

Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/