projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f94e2
)
EDAC: Fix error return
author
Borislav Petkov
<borislav.petkov@amd.com>
Wed, 1 Sep 2010 14:32:20 +0000
(16:32 +0200)
committer
Borislav Petkov
<bp@amd64.org>
Thu, 21 Oct 2010 12:47:56 +0000
(14:47 +0200)
We should return a negative value when we cannot get the toplevel edac
sysfs class.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/edac_mc_sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/edac_mc_sysfs.c
b/drivers/edac/edac_mc_sysfs.c
index 8aad94d10c0cced51d10746f22b5086068c48d74..aa93ad82ee07dd87a876de40d563d06177fca770 100644
(file)
--- a/
drivers/edac/edac_mc_sysfs.c
+++ b/
drivers/edac/edac_mc_sysfs.c
@@
-1011,7
+1011,7
@@
void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci)
*/
int edac_sysfs_setup_mc_kset(void)
{
- int err =
0
;
+ int err =
-EINVAL
;
struct sysdev_class *edac_class;
debugf1("%s()\n", __func__);