drivers/edac: Lindent r82600
Run r82600_edac.c file through Lindent for cleanup Signed-off-by: Douglas Thompson <dougthompson@xmission.com> Signed-off-by: Dave Jiang <djiang@mvista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1111660109
commit
cddbfcacf0
|
@ -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,
|
||||||
((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,
|
||||||
|
|
||||||
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)
|
||||||
/* 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)
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue