Re: [PATCH -next] drm/amd/dc: Remove a useless comparison

2020-05-07 Thread Alex Deucher
On Thu, May 7, 2020 at 9:35 AM ChenTao wrote: > > Fix the following warning: > > 'en' is uint32_t and can never be negative. > > drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:132:10: warning: > comparison of unsigned expression < 0 is always false [-Wtype-limits] > if ((en <

[PATCH -next] drm/amd/dc: Remove a useless comparison

2020-05-07 Thread ChenTao
Fix the following warning: 'en' is uint32_t and can never be negative. drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:132:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if ((en < GPIO_DDC_LINE_MIN) || (en > GPIO_DDC_LINE_MAX)) {