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

Commit c836d052 authored by Kyle Yan's avatar Kyle Yan
Browse files

soc: qcom: Remove unnecessary kfrees



These kfrees are redundant and may lead to erroneous double frees.

Change-Id: Ief9336a0f8da3536a5026f73b76ed2bca651e391
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 0b4fef02
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);