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: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
Jonghwan Choi 2011-10-22 00:22:54 +02:00 committed by Rafael J. Wysocki
parent 7fef9fc83f
commit 0ab1e79b82

View File

@ -104,9 +104,7 @@ static void __pm_clk_remove(struct pm_clock_entry *ce)
clk_put(ce->clk);
}
if (ce->con_id)
kfree(ce->con_id);
kfree(ce->con_id);
kfree(ce);
}