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

Commit 0ab1e79b authored by Jonghwan Choi's avatar Jonghwan Choi Committed by Rafael J. Wysocki
Browse files

PM / Clocks: Remove redundant NULL checks before kfree()



Since kfree() checks it its argument is not NULL, it is not necessary
to duplicate this check in __pm_clk_remove().

[rjw: Added the changelog.]

Signed-off-by: default avatarJonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 7fef9fc8
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -104,9 +104,7 @@ static void __pm_clk_remove(struct pm_clock_entry *ce)
			clk_put(ce->clk);
			clk_put(ce->clk);
	}
	}


	if (ce->con_id)
	kfree(ce->con_id);
	kfree(ce->con_id);

	kfree(ce);
	kfree(ce);
}
}