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>
This commit is contained in:
Dave Airlie
2017-10-03 14:27:14 +10:00
committed by Alex Deucher
parent 5667ff5c11
commit d029810caa
5 changed files with 9 additions and 22 deletions

View File

@@ -85,11 +85,8 @@ static struct atom_encoder_caps_record *get_encoder_cap_record(
static void destruct(struct bios_parser *bp)
{
if (bp->base.bios_local_image)
kfree(bp->base.bios_local_image);
if (bp->base.integrated_info)
kfree(bp->base.integrated_info);
kfree(bp->base.bios_local_image);
kfree(bp->base.integrated_info);
}
static void firmware_parser_destroy(struct dc_bios **dcb)