mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 14:02:43 -04:00
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:
committed by
Alex Deucher
parent
5667ff5c11
commit
d029810caa
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user