Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24135
b: refs/heads/master
c: 028a7b6
h: refs/heads/master
i:
  24133: f1fd83c
  24131: c25ce6a
  24127: 3995140
v: v3
  • Loading branch information
Dave Peterson authored and Linus Torvalds committed Mar 26, 2006
1 parent 91c027c commit 47adfe9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: a1d03fcc1399b1e23922bcc3af1772b128aa6e93
refs/heads/master: 028a7b6d3d9fa2cc41d76d45575345cca8d00a4c
17 changes: 9 additions & 8 deletions trunk/drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1484,8 +1484,6 @@ EXPORT_SYMBOL(edac_mc_add_mc);
/* FIXME - should a warning be printed if no error detection? correction? */
int edac_mc_add_mc(struct mem_ctl_info *mci)
{
int rc = 1;

debugf0("%s()\n", __func__);
#ifdef CONFIG_EDAC_DEBUG
if (edac_debug_level >= 3)
Expand All @@ -1505,27 +1503,30 @@ int edac_mc_add_mc(struct mem_ctl_info *mci)
down(&mem_ctls_mutex);

if (add_mc_to_global_list(mci))
goto finish;
goto fail0;

/* set load time so that error rate can be tracked */
mci->start_time = jiffies;

if (edac_create_sysfs_mci_device(mci)) {
edac_mc_printk(mci, KERN_WARNING,
"failed to create sysfs device\n");
/* FIXME - should there be an error code and unwind? */
goto finish;
goto fail1;
}

/* Report action taken */
edac_mc_printk(mci, KERN_INFO, "Giving out device to %s %s: PCI %s\n",
mci->mod_name, mci->ctl_name, pci_name(mci->pdev));

rc = 0;
up(&mem_ctls_mutex);
return 0;

finish:
fail1:
del_mc_from_global_list(mci);

fail0:
up(&mem_ctls_mutex);
return rc;
return 1;
}


Expand Down

0 comments on commit 47adfe9

Please sign in to comment.