amdgpu/dc: kfree already checks for NULL.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 04:27:14 +0000 (14:27 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 17:05:03 +0000 (13:05 -0400)
commitd029810caafa4e6b146274560154e3f0f0381fb5
treedf4f51e4d06cc4faa3a5dbf9db44de4e03e85a63
parent5667ff5c117f2d8735f27a267bc68a0811c55075
amdgpu/dc: kfree already checks for NULL.

Don't bother checking for it.

Found with the cocci ifnullfree.cocci script.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/vector.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c