Commit cddbfcac authored by Douglas Thompson's avatar Douglas Thompson Committed by Linus Torvalds

drivers/edac: Lindent r82600

Run r82600_edac.c file through Lindent for cleanup
Signed-off-by: default avatarDouglas Thompson <dougthompson@xmission.com>
Signed-off-by: default avatarDave Jiang <djiang@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 11116601
...@@ -133,7 +133,7 @@ struct r82600_error_info { ...@@ -133,7 +133,7 @@ struct r82600_error_info {
static unsigned int disable_hardware_scrub = 0; static unsigned int disable_hardware_scrub = 0;
static void r82600_get_error_info (struct mem_ctl_info *mci, static void r82600_get_error_info(struct mem_ctl_info *mci,
struct r82600_error_info *info) struct r82600_error_info *info)
{ {
struct pci_dev *pdev; struct pci_dev *pdev;
...@@ -154,8 +154,9 @@ static void r82600_get_error_info (struct mem_ctl_info *mci, ...@@ -154,8 +154,9 @@ static void r82600_get_error_info (struct mem_ctl_info *mci,
((u32) BIT(0) & (u32) BIT(1))); ((u32) BIT(0) & (u32) BIT(1)));
} }
static int r82600_process_error_info (struct mem_ctl_info *mci, static int r82600_process_error_info(struct mem_ctl_info *mci,
struct r82600_error_info *info, int handle_errors) struct r82600_error_info *info,
int handle_errors)
{ {
int error_found; int error_found;
u32 eapaddr, page; u32 eapaddr, page;
...@@ -177,9 +178,7 @@ static int r82600_process_error_info (struct mem_ctl_info *mci, ...@@ -177,9 +178,7 @@ static int r82600_process_error_info (struct mem_ctl_info *mci,
if (handle_errors) if (handle_errors)
edac_mc_handle_ce(mci, page, 0, /* not avail */ edac_mc_handle_ce(mci, page, 0, /* not avail */
syndrome, syndrome, edac_mc_find_csrow_by_page(mci, page), 0, /* channel */
edac_mc_find_csrow_by_page(mci, page),
0, /* channel */
mci->ctl_name); mci->ctl_name);
} }
...@@ -314,7 +313,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx) ...@@ -314,7 +313,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx)
/* Here we assume that we will never see multiple instances of this /* Here we assume that we will never see multiple instances of this
* type of memory controller. The ID is therefore hardcoded to 0. * type of memory controller. The ID is therefore hardcoded to 0.
*/ */
if (edac_mc_add_mc(mci,0)) { if (edac_mc_add_mc(mci, 0)) {
debugf3("%s(): failed edac_mc_add_mc()\n", __func__); debugf3("%s(): failed edac_mc_add_mc()\n", __func__);
goto fail; goto fail;
} }
...@@ -330,7 +329,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx) ...@@ -330,7 +329,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx)
debugf3("%s(): success\n", __func__); debugf3("%s(): success\n", __func__);
return 0; return 0;
fail: fail:
edac_mc_free(mci); edac_mc_free(mci);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment