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

Commit 268fd5e6 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Remove unnecessary kfrees" into msm-4.8

parents ccd93644 c836d052
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1697,7 +1697,6 @@ struct subsys_device *subsys_register(struct subsys_desc *desc)
	if (ret) {
		subsys_debugfs_remove(subsys);
		put_device(&subsys->dev);
		kfree(subsys);
		return ERR_PTR(ret);
	}

@@ -1759,7 +1758,6 @@ struct subsys_device *subsys_register(struct subsys_desc *desc)
err_register:
	subsys_debugfs_remove(subsys);
	device_unregister(&subsys->dev);
	kfree(subsys);
	return ERR_PTR(ret);
}
EXPORT_SYMBOL(subsys_register);