diff options
author | Harry Wentland <harry.wentland@amd.com> | 2017-11-10 19:49:44 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-28 17:56:26 -0500 |
commit | b3fb2b4e21a995c4fa511627088bd55b88f6be11 (patch) | |
tree | 97307c799c07261c2e53a8a46baa108e5cfe8c25 /drivers/gpu/drm/amd/display/dc/inc/hw/transform.h | |
parent | b001965d4eb5e4c0e3de7dc6dce1d45ca25232a7 (diff) | |
download | linux-b3fb2b4e21a995c4fa511627088bd55b88f6be11.tar.gz linux-b3fb2b4e21a995c4fa511627088bd55b88f6be11.tar.bz2 linux-b3fb2b4e21a995c4fa511627088bd55b88f6be11.zip |
drm/amd/display: Fix hubp check in set_cursor_position
Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:298
dc_stream_set_cursor_position() error: we previously assumed 'hubp'
could be null (see line 294)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/transform.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/transform.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h b/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h index 7c08bc62c1f5..ea88997e1bbd 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h @@ -259,13 +259,6 @@ struct transform_funcs { struct transform *xfm_base, const struct dc_cursor_attributes *attr); - void (*set_cursor_position)( - struct transform *xfm_base, - const struct dc_cursor_position *pos, - const struct dc_cursor_mi_param *param, - uint32_t width - ); - }; const uint16_t *get_filter_2tap_16p(void); |