diff options
| author | Stefan Agner <stefan@agner.ch> | 2018-06-17 10:53:38 +0200 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-05 16:38:46 -0500 | 
| commit | d6258eaa41fc531277d44fbbee670c866025bfdc (patch) | |
| tree | fd56b6d0135716aae687f461a4b4187fa02d893e /drivers | |
| parent | c49d82800bbf04a6d7d6843c6f2c2ea5746eb26e (diff) | |
| download | blackbird-op-linux-d6258eaa41fc531277d44fbbee670c866025bfdc.tar.gz blackbird-op-linux-d6258eaa41fc531277d44fbbee670c866025bfdc.zip  | |
drm/amd/display: don't initialize result
The wrong enum type is used to initialize the result, leading to a
warning when using clang:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1998:26: warning:
      implicit conversion from enumeration type 'enum ddc_result' to different
      enumeration type 'enum dc_status' [-Wenum-conversion]
        enum dc_status result = DDC_RESULT_UNKNOWN;
                       ~~~~~~   ^~~~~~~~~~~~~~~~~~
1 warning generated.
Initialization of result is unnecessary anyway, just drop the
initialization.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 049fc5cce1d2..84586b679d73 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -2000,7 +2000,7 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd  {  	union hpd_irq_data hpd_irq_dpcd_data = {{{{0}}}};  	union device_service_irq device_service_clear = { { 0 } }; -	enum dc_status result = DDC_RESULT_UNKNOWN; +	enum dc_status result;  	bool status = false;  	/* For use cases related to down stream connection status change,  	 * PSR and device auto test, refer to function handle_sst_hpd_irq  | 

