Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309135
b: refs/heads/master
c: 36683aa
h: refs/heads/master
i:
  309133: 3a7992c
  309131: 433a731
  309127: ff3b8e8
  309119: a3827c8
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 28, 2012
1 parent 927322c commit 217b681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 805afb6997ce45093981f27afbe4e21ccde3d990
refs/heads/master: 36683aab90373afd0cff0935bf886ebe6c7b0de6
9 changes: 3 additions & 6 deletions trunk/drivers/edac/i82975x_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci,
cumul_size);

nr_pages = cumul_size - last_cumul_size;
if (!nr_pages)
continue;

/*
* Initialise dram labels
* index values:
Expand All @@ -420,9 +423,6 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci,
for (chan = 0; chan < csrow->nr_channels; chan++) {
dimm = mci->csrows[index].channels[chan].dimm;

if (!nr_pages)
continue;

dimm->nr_pages = nr_pages / csrow->nr_channels;
strncpy(csrow->channels[chan].dimm->label,
labels[(index >> 1) + (chan * 2)],
Expand All @@ -433,9 +433,6 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci,
dimm->edac_mode = EDAC_SECDED; /* only supported */
}

if (!nr_pages)
continue; /* not populated */

csrow->first_page = last_cumul_size;
csrow->last_page = cumul_size - 1;
last_cumul_size = cumul_size;
Expand Down

0 comments on commit 217b681

Please sign in to comment.