aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorDeepak R Varma <drv@mailo.com>2022-12-28 00:09:51 +0530
committerAlex Deucher <alexander.deucher@amd.com>2023-01-10 18:04:53 -0500
commit447395e18ae084b1ac96d4efeca43a711cf5a36b (patch)
tree44582d9b357d2956766917bb89dff6e622a4c8de /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parent45bf79719f1f7f3fbd5dcaf1440afc9b3033c778 (diff)
drm/amd/display: No need for Null pointer check before kfree
kfree() & vfree() internally performs NULL check on the pointer handed to it and take no action if it indeed is NULL. Hence there is no need for a pre-check of the memory pointer before handing it to kfree()/vfree(). Issue reported by ifnullfree.cocci Coccinelle semantic patch script. Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Deepak R Varma <drv@mailo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions