drm/amd/display: Remove redundant NULL check before kfree() in mod_power_create()

kfree() safely handles NULL pointers, so there is no need to check for
NULL before calling kfree().

Remove redundant NULL check.

Found by Coccinelle ifnullfree script.

Signed-off-by: Ziran Zhang <zhangcoder@yeah.net>
Reviewed-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Ziran Zhang 2026-06-27 21:13:54 +08:00 • committed by Alex Deucher
commit 9835f031f0