linux/drivers/gpu/drm/amd/display/dc
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
..
basics drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
bios drm/amd/display: Fix warning about overflow 2017-10-21 16:50:26 -04:00
calcs drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
core drm/amd/display: Fix non-DCN build 2017-10-21 16:50:21 -04:00
dce drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
dce80 amdgpu/dc: remove pointless return from build_pipe_hw_param 2017-09-29 13:02:41 -04:00
dce100 drm/amd/display: add max_video_width cap to dc 2017-10-21 16:47:41 -04:00
dce110 drm/amd/display: fix null dereference in reset hw ctx 2017-10-21 16:49:29 -04:00
dce112 amdgpu/dc: remove pointless return from build_pipe_hw_param 2017-09-29 13:02:41 -04:00
dce120 amdgpu/dc: drop hw_sequencer_types.h 2017-10-06 13:03:20 -04:00
dcn10 drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
dml drm/amd/display: change dml vba cursor count define to correct one 2017-10-21 16:45:43 -04:00
gpio drm/amd/display: fix ifnullfree.cocci warnings 2017-10-21 16:50:37 -04:00
i2caux amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
inc drm/amd/display: rename transform to dpp for dcn 2017-10-21 16:49:40 -04:00
irq amdgpu/dc: fix construct return values on irq service. 2017-09-29 13:02:54 -04:00
virtual drm/amd/display: Move power control from link encoder to hwsequencer 2017-10-21 16:44:08 -04:00
dc_bios_types.h drm/amd/display: Rename firmware_info to dc_firmware_info 2017-09-26 18:15:51 -04:00
dc_ddc_types.h drm/amd/display: Roll core_link into dc_link 2017-09-26 18:15:36 -04:00
dc_dp_types.h drm/amd/display: USB-c DP-HDMI dongle shows garbage on Sony TV 2017-09-26 18:06:35 -04:00
dc_helper.c drm/amd/display: use some sensible time out 2017-09-26 18:16:23 -04:00
dc_hw_types.h drm/amd/display: clean up dcn10 dpp after HW review 2017-10-21 16:46:55 -04:00
dc_types.h drm/amd/display: make FBC configurable option 2017-10-21 16:46:05 -04:00
dc.h drm/amd/display: Report stream as different on scaling change 2017-10-21 16:50:10 -04:00
dm_helpers.h drm/amd/display: Implement HDMI retimer settings for RV AM4 support. 2017-09-26 18:16:45 -04:00
dm_pp_smu.h drm/amd/display: refactor pplib/smu communication 2017-09-26 18:16:46 -04:00
dm_services_types.h drm/amd/display: refactor pplib/smu communication 2017-09-26 18:16:46 -04:00
dm_services.h drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
irq_types.h drm/amd/display: Add interrupt entries for VBLANK isr. 2017-09-26 17:11:12 -04:00
Makefile drm/amdgpu/display: Enable DCN in DC 2017-09-26 18:06:51 -04:00
os_types.h amdgpu/dc: convert dc_transfer to use a kref. 2017-10-06 13:08:55 -04:00