linux/drivers/gpu/drm/msm/dp
Guenter Roeck 5ed7944dfa drm/msm/dp: Drop unnecessary NULL checks after container_of
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 check on the result of container_of() is therefore unnecessary
and misleading. Remove it.

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
...+>

While at it, remove unused but assigned variable hpd in
dp_display_usbpd_attention_cb().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210525032033.453143-1-linux@roeck-us.net
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
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
..
dp_audio.c drm/msm/dp: initialize audio_comp when audio starts 2021-05-06 16:26:57 -07:00
dp_audio.h drm/msm/dp: add audio support for Display Port on MSM 2020-09-15 10:54:34 -07:00
dp_aux.c drm/msm/dp: Handle aux timeouts, nacks, defers 2021-06-23 07:32:15 -07:00
dp_aux.h drm/msm/dp: Handle aux timeouts, nacks, defers 2021-06-23 07:32:15 -07:00
dp_catalog.c drm/msm/dp: Simplify aux irq handling code 2021-06-23 07:32:14 -07:00
dp_catalog.h drm/msm/dp: Simplify aux irq handling code 2021-06-23 07:32:14 -07:00
dp_ctrl.c drm/msm: Convert to use resource-managed OPP API 2021-06-23 07:33:52 -07:00
dp_ctrl.h drm/msm: Convert to use resource-managed OPP API 2021-06-23 07:33:52 -07:00
dp_debug.c drm/msm/dp: delete unnecessary debugfs error handling 2021-04-07 11:05:44 -07:00
dp_debug.h drm/msm/dp: fix incorrect function prototype of dp_debug_get() 2020-09-25 20:31:06 -07:00
dp_display.c drm/msm/dp: Drop unnecessary NULL checks after container_of 2021-06-23 07:33:53 -07:00
dp_display.h drm/msm: add support to take dpu snapshot 2021-06-23 07:32:13 -07:00
dp_drm.c drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets 2020-09-15 10:54:34 -07:00
dp_drm.h
dp_hpd.c drm/msm/dp: Fix incorrect NULL check kbot warnings in DP driver 2021-04-07 11:05:44 -07:00
dp_hpd.h drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets 2020-09-15 10:54:34 -07:00
dp_link.c drm/msm: remove unneeded variable ret 2021-06-23 07:33:53 -07:00
dp_link.h drm/msm/dp: DisplayPort PHY compliance tests fixup 2020-11-04 08:26:25 -08:00
dp_panel.c drm/msm: Remove unneeded variable: "rc" 2021-06-23 07:33:53 -07:00
dp_panel.h drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets 2020-09-15 10:54:34 -07:00
dp_parser.c drm/msm/dp: Use qmp phy for DP PLL and PHY 2020-09-15 10:54:35 -07:00
dp_parser.h drm/msm/dp: Use qmp phy for DP PLL and PHY 2020-09-15 10:54:35 -07:00
dp_power.c drm/msm/dp: Fix indentation kbot warnings in DP driver 2021-04-07 11:05:44 -07:00
dp_power.h drm/msm/dp: Fixed couple of typos 2021-06-23 07:33:52 -07:00
dp_reg.h drm/msm/dp: return correct connection status after suspend 2020-11-10 12:38:58 -08:00