Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca755e0a authored by Borislav Petkov's avatar Borislav Petkov Committed by Borislav Petkov
Browse files

EDAC: Fix error return



We should return a negative value when we cannot get the toplevel edac
sysfs class.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent f6f94e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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__);