Re: [PATCH] regmap: debugfs: Fix last entry store in the offset cache

From: Mark Brown
Date: Wed Jan 16 2013 - 08:29:10 EST


On Wed, Jan 16, 2013 at 02:24:11PM +0100, Philipp Zabel wrote:

> - /* Close the last entry off if we didn't scan beyond it */
> - if (c) {
> - c->max = p - 1;
> - list_add_tail(&c->list,
> - &map->debugfs_off_cache);

Oh, ffs. I actually fixed this but the cherry pick went wrong.

> - } else {
> - return base;
> + /* Close the last entry off if we didn't scan beyond it */
> + if (c) {
> + c->max = p - 1;
> + list_add_tail(&c->list,
> + &map->debugfs_off_cache);
> + } else {
> + return base;
> + }

No, the else clause just needs deleting.
--
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/