[Freedreno] [PATCH -next 0/7] drm: Remove many unnecessary NULL values
Ruan Jinjie
ruanjinjie at huawei.com
Wed Aug 9 03:44:38 UTC 2023
The NULL initialization of the pointers assigned by kzalloc() or
kunit_kzalloc() first is not necessary, because if the kzalloc() or
kunit_kzalloc() failed, the pointers will be assigned NULL, otherwise
it works as usual. so remove it.
Ruan Jinjie (7):
drm/amdkfd: Remove unnecessary NULL values
drm/amd/display: Remove unnecessary NULL values
drm/msm: Remove unnecessary NULL values
drm/radeon: Remove unnecessary NULL values
drm/virtio: Remove an unnecessary NULL value
drm/format-helper: Remove unnecessary NULL values
drm: Remove unnecessary NULL values
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c | 4 +--
.../gpu/drm/amd/display/dc/bios/bios_parser.c | 4 +--
.../drm/amd/display/dc/bios/bios_parser2.c | 4 +--
drivers/gpu/drm/drm_agpsupport.c | 2 +-
drivers/gpu/drm/drm_atomic_uapi.c | 2 +-
drivers/gpu/drm/exynos/exynos_drm_ipp.c | 2 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 2 +-
drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 2 +-
drivers/gpu/drm/radeon/radeon_agp.c | 2 +-
drivers/gpu/drm/radeon/radeon_combios.c | 6 ++--
.../gpu/drm/radeon/radeon_legacy_encoders.c | 4 +--
.../gpu/drm/tests/drm_format_helper_test.c | 28 +++++++++----------
drivers/gpu/drm/virtio/virtgpu_submit.c | 2 +-
14 files changed, 33 insertions(+), 33 deletions(-)
--
2.34.1
More information about the Freedreno
mailing list