lkml.org 
[lkml]   [2013]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2013-01-16 15:21    [W:0.033 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site