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

Commit 6d1bdd2a authored by d binderman's avatar d binderman Committed by Benjamin Herrenschmidt
Browse files

powerpc/pmac/windfarm: Don't test pointers before kfree()



Fix minor nits found by cppcheck

[./macintosh/windfarm_pm81.c:760]: (style) Redundant condition. It is safe to deallocate a NULL pointer
[./macintosh/windfarm_pm81.c:762]: (style) Redundant condition. It is safe to deallocate a NULL pointer

Signed-off-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 213972e9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -757,9 +757,7 @@ static int __devexit wf_smu_remove(struct platform_device *ddev)
		wf_put_control(cpufreq_clamp);

	/* Destroy control loops state structures */
	if (wf_smu_sys_fans)
	kfree(wf_smu_sys_fans);
	if (wf_smu_cpu_fans)
	kfree(wf_smu_cpu_fans);

	return 0;