Messages in this thread | | | Date | Wed, 16 Jan 2013 22:29:19 +0900 | From | Mark Brown <> | Subject | Re: [PATCH] regmap: debugfs: Fix last entry store in the offset cache |
| |
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.
| |