AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/7] drm: Remove many unnecessary NULL values
@ 2023-08-09  3:44 Ruan Jinjie
  2023-08-09  3:44 ` [PATCH -next 1/7] drm/amdkfd: Remove " Ruan Jinjie
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Ruan Jinjie @ 2023-08-09  3:44 UTC (permalink / raw)
  To: Felix.Kuehling, alexander.deucher, christian.koenig, Xinhui.Pan,
	airlied, daniel, harry.wentland, sunpeng.li, Rodrigo.Siqueira,
	maarten.lankhorst, mripard, tzimmermann, inki.dae, sw0312.kim,
	kyungmin.park, krzysztof.kozlowski, alim.akhtar, robdclark,
	quic_abhinavk, dmitry.baryshkov, sean, marijn.suijten, bskeggs,
	kherbst, lyude, kraxel, gurchetansingh, olvaffe,
	paulo.miguel.almeida.rodenas, wenjing.liu, haoping.liu,
	Charlene.Liu, chiahsuan.chung, george.shen, sancchen,
	tony.tascioglu, jaehyun.chung, tales.aparecida, drv,
	aurabindo.pillai, quic_vpolimer, jiasheng, noralf,
	jose.exposito89, javierm, mairacanal, davidgow, arthurgrillo,
	amd-gfx, dri-devel, linux-arm-kernel, linux-samsung-soc,
	linux-arm-msm, freedreno, nouveau, virtualization
  Cc: ruanjinjie

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-10-09 10:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09  3:44 [PATCH -next 0/7] drm: Remove many unnecessary NULL values Ruan Jinjie
2023-08-09  3:44 ` [PATCH -next 1/7] drm/amdkfd: Remove " Ruan Jinjie
2023-08-09  6:15   ` Christian König
2023-08-09 13:11     ` Alex Deucher
2023-08-09  3:44 ` [PATCH -next 2/7] drm/amd/display: " Ruan Jinjie
2023-08-09  3:44 ` [PATCH -next 3/7] drm/msm: " Ruan Jinjie
2023-08-12  0:28   ` Abhinav Kumar
2023-08-09  3:44 ` [PATCH -next 4/7] drm/radeon: " Ruan Jinjie
2023-08-09  3:44 ` [PATCH -next 5/7] drm/virtio: Remove an unnecessary NULL value Ruan Jinjie
2023-08-13  1:14   ` Dmitry Osipenko
2023-08-09  3:44 ` [PATCH -next 6/7] drm/format-helper: Remove unnecessary NULL values Ruan Jinjie
2023-08-09 12:20   ` Arthur Grillo
2023-08-09  3:44 ` [PATCH -next 7/7] drm: " Ruan Jinjie
2023-10-08 14:01 ` [PATCH -next 0/7] drm: Remove many " Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox