Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348804
b: refs/heads/master
c: 5bd9f4b
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 8, 2013
1 parent 9d8d9cc commit 08354a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95f971c745a343255744703dc4ae8d78508519cc
refs/heads/master: 5bd9f4bb34c16b62725b9486a290c01b1fdfec1c
10 changes: 10 additions & 0 deletions trunk/drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
}
}

/*
* This should never happen; we return above if we fail to
* allocate and we should never be in this code if there are
* no registers at all.
*/
if (list_empty(&map->debugfs_off_cache)) {
WARN_ON(list_empty(&map->debugfs_off_cache));
return base;
}

/* Find the relevant block */
list_for_each_entry(c, &map->debugfs_off_cache, list) {
if (from >= c->min && from <= c->max) {
Expand Down

0 comments on commit 08354a5

Please sign in to comment.