linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/gpio
kbuild test robot 2979d7e973 drm/amd/display: fix ifnullfree.cocci warnings
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:134:3-8: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values.
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:175:4-9: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values.

 NULL check before some freeing functions is not needed.

 Based on checkpatch warning
 "kfree(NULL) is safe this check is probably not required"
 and kfreeaddr.cocci by Julia Lawall.

Generated by: scripts/coccinelle/free/ifnullfree.cocci

Fixes: f09cd1f46388 ("drm/amd/display: Use kernel alloc/free")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-10-21 16:50:37 -04:00
..
dce80
dce110
dce120
dcn10 drm/amdgpu/display: Add gpio support for DCN 2017-09-26 18:06:49 -04:00
diagnostics
ddc_regs.h
gpio_base.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
gpio_regs.h
gpio_service.c drm/amd/display: fix ifnullfree.cocci warnings 2017-10-21 16:50:37 -04:00
gpio_service.h
hpd_regs.h
hw_ddc.c amdgpu/dc: cleanup construct returns in gpio. 2017-09-29 13:02:28 -04:00
hw_ddc.h
hw_factory.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
hw_factory.h
hw_gpio.c amdgpu/dc: cleanup construct returns in gpio. 2017-09-29 13:02:28 -04:00
hw_gpio.h amdgpu/dc: cleanup construct returns in gpio. 2017-09-29 13:02:28 -04:00
hw_hpd.c amdgpu/dc: cleanup construct returns in gpio. 2017-09-29 13:02:28 -04:00
hw_hpd.h
hw_translate.c drm/amd/display/dc: add DCE_VERSION for DCE8 APUs 2017-09-26 18:16:32 -04:00
hw_translate.h
Makefile drm/amdgpu/display: Enable DCN in DC 2017-09-26 18:06:51 -04:00