bianbu-linux-6.6/drivers/gpu/drm/msm/dp
Abhinav Kumar cb3fd74a03 drm/msm/dp: delete unnecessary debugfs error handling
Currently the error checking logic in the dp_debug module could
pass zero to PTR_ERR and it causes the below kbot warnings:

drivers/gpu/drm/msm/dp/dp_debug.c:378 dp_debug_init()
warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:387 dp_debug_init()
warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:396 dp_debug_init()
warn: passing zero to 'PTR_ERR'
drivers/gpu/drm/msm/dp/dp_debug.c:405 dp_debug_init()
warn: passing zero to 'PTR_ERR'

Debugfs functions are not supposed to be checked in the normal
case so delete this code.  Also it silences the above Smatch
warnings that we're checking for NULL when these functions only
return error pointers.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1614971839-2686-3-git-send-email-abhinavk@codeaurora.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-04-07 11:05:44 -07:00
..
dp_audio.c drm/msm/dp: wait for audio notification before disabling clocks 2020-09-15 10:54:35 -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: Restore aux retry tuning logic 2021-03-17 09:17:24 -07:00
dp_aux.h
dp_catalog.c drm/msm/dp: unplug interrupt missed after irq_hpd handler 2021-01-31 11:34:36 -08:00
dp_catalog.h drm/msm/dp: deinitialize mainlink if link training failed 2020-11-10 12:39:31 -08:00
dp_ctrl.c Merge tag 'drm-msm-next-2021-02-07' of https://gitlab.freedesktop.org/drm/msm into drm-next 2021-02-25 09:27:42 +10:00
dp_ctrl.h drm/msm/dp: reset dp controller only at boot up and pm_resume 2021-02-06 09:28:17 -08: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: reset dp controller only at boot up and pm_resume 2021-02-06 09:28:17 -08:00
dp_display.h drm/msm/dp: Use qmp phy for DP PLL and PHY 2020-09-15 10:54:35 -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/dp: skip checking LINK_STATUS_UPDATED bit 2020-11-10 12:39:48 -08: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-02-04 13:40:48 -08: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: add opp_table corner voting support base on dp_ink_clk rate 2020-11-04 08:26:26 -08:00
dp_reg.h drm/msm/dp: return correct connection status after suspend 2020-11-10 12:38:58 -08:00