linux/drivers/gpu/drm/msm
Guenter Roeck 9389a0e7b1 drm/msm/dpu: Drop unnecessary NULL checks after container_of in dpu_encoder
The result of container_of() operations is never NULL unless the embedded
element is the first element of the structure. This is not the case here.
The NULL checks on the result of container_of() are therefore unnecessary
and misleading. Remove them.

This change was made automatically with the following Coccinelle script.

@@
type t;
identifier v;
statement s;
@@

<+...
(
  t v = container_of(...);
|
  v = container_of(...);
)
  ...
  when != v
- if (\( !v \| v == NULL \) ) s
...+>

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210525112904.1747066-1-linux@roeck-us.net
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
[DB: fixed patch subject]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-06-23 07:33:53 -07:00
..
adreno drm/msm: Convert to use resource-managed OPP API 2021-06-23 07:33:52 -07:00
disp drm/msm/dpu: Drop unnecessary NULL checks after container_of in dpu_encoder 2021-06-23 07:33:53 -07:00
dp drm/msm/dp: Drop unnecessary NULL checks after container_of 2021-06-23 07:33:53 -07:00
dsi drm/msm/dsi: fix 32-bit clang warning 2021-06-23 07:33:53 -07:00
edp drm/msm: sync generated headers 2020-07-31 06:46:16 -07:00
hdmi drm/msm: sync generated headers 2020-07-31 06:46:16 -07:00
Kconfig drm/msm/dsi: drop msm_dsi_pll abstraction 2021-04-07 11:05:46 -07:00
Makefile drm/msm: add support to take dpu snapshot 2021-06-23 07:32:13 -07:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_atomic.c Merge drm/drm-fixes into drm-next 2021-04-13 23:15:09 +02:00
msm_debugfs.c drm/msm: Fix debugfs deadlock 2021-04-07 11:05:43 -07:00
msm_debugfs.h drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
msm_drv.c drm/msm: Fix error return code in msm_drm_init() 2021-06-23 07:33:44 -07:00
msm_drv.h drm/msm: fix display snapshotting if DP or DSI is disabled 2021-06-23 07:32:14 -07:00
msm_fb.c drm/msm: Move FB debug prints to drm_dbg_state() 2021-06-23 07:32:15 -07:00
msm_fbdev.c drm/msm/gem: Move prototypes to msm_gem.h 2020-11-04 16:00:55 -08:00
msm_fence.c drm/msm: Ratelimit invalid-fence message 2021-03-17 14:19:19 -07:00
msm_fence.h
msm_gem_prime.c drm/msm: Use struct dma_buf_map in GEM vmap ops 2020-11-10 10:38:57 +01:00
msm_gem_shrinker.c drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gem_submit.c drm/msm: Fix legacy relocs path 2021-02-05 10:00:10 -08:00
msm_gem_vma.c drm/msm: Leave inuse count intact on map failure 2020-09-22 08:28:15 -07:00
msm_gem.c Merge branch 'msm-fixes-v5.13-rc6' into msm-next-redo 2021-06-23 07:32:59 -07:00
msm_gem.h drm/msm: Do not unpin/evict exported dma-buf's 2021-04-27 10:10:12 -07:00
msm_gpu_trace.h drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gpu_tracepoints.c
msm_gpu.c drm/msm: Add param for userspace to query suspend count 2021-04-07 11:05:43 -07:00
msm_gpu.h drm/msm: Add param for userspace to query suspend count 2021-04-07 11:05:43 -07:00
msm_gpummu.c Merge tag 'drm-msm-next-2020-09-27' of https://gitlab.freedesktop.org/drm/msm into drm-next 2020-09-29 10:18:49 +10:00
msm_iommu.c iommu/io-pgtable: Remove tlb_flush_leaf 2020-12-08 15:23:37 +00:00
msm_kms.h drm/msm: make msm_disp_state transient data struct 2021-06-23 07:32:14 -07:00
msm_mmu.h drm/msm: Add support to create a local pagetable 2020-09-12 10:48:32 -07:00
msm_perf.c
msm_rd.c drm/msm/gem: Switch over to obj->resv for locking 2020-11-04 16:00:56 -08:00
msm_ringbuffer.c drm/msm: Protect ring->submits with it's own lock 2020-11-04 16:00:56 -08:00
msm_ringbuffer.h drm/msm: Protect ring->submits with it's own lock 2020-11-04 16:00:56 -08:00
msm_submitqueue.c drm/msm: Add a context pointer to the submitqueue 2020-09-12 10:45:56 -07:00
NOTES