diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-09-01 16:32:20 +0200 |
---|---|---|
committer | Borislav Petkov <bp@amd64.org> | 2010-10-21 14:47:56 +0200 |
commit | ca755e0a49ff1272efff0b3bfdf3f1e0b0fc5d57 (patch) | |
tree | d2643b3c7a014fde6ac2af706133537362a99386 | |
parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
download | op-kernel-dev-ca755e0a49ff1272efff0b3bfdf3f1e0b0fc5d57.zip op-kernel-dev-ca755e0a49ff1272efff0b3bfdf3f1e0b0fc5d57.tar.gz |
EDAC: Fix error return
We should return a negative value when we cannot get the toplevel edac
sysfs class.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 8aad94d..aa93ad8 100644 --- 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__); |