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

Commit b067db49 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Greg Kroah-Hartman
Browse files

kobject: kobject_put cleanup



This patch removes redundant argument checks for kobject_put().

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f7506536
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -195,7 +195,6 @@ int kobject_add(struct kobject * kobj)
	if (error) {
		/* unlink does the kobject_put() for us */
		unlink(kobj);
		if (parent)
		kobject_put(parent);

		/* be noisy on error issues */
@@ -420,7 +419,6 @@ void kobject_cleanup(struct kobject * kobj)
		t->release(kobj);
	if (s)
		kset_put(s);
	if (parent) 
	kobject_put(parent);
}