summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/dp/dp_ctrl.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-05-25 04:29:04 -0700
committerRob Clark <robdclark@chromium.org>2021-06-23 07:33:53 -0700
commit9389a0e7b17c7d781ef77003138f0c82f5a0aa4c (patch)
tree4edf750316d3b3176f68fd4c4db0202548622e31 /drivers/gpu/drm/msm/dp/dp_ctrl.c
parent5ed7944dfa508cce927870fecf370bad778b7910 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/msm/dp/dp_ctrl.c')
0 files changed, 0 insertions, 0 deletions