Re: [PATCH -next] drm/amd/display: remove useless if/else

2020-10-29 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Oct 28, 2020 at 2:56 PM Zou Wei wrote: > > Fix the following coccinelle report: > > ./drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:1367:3-5: > WARNING: possible condition with no effect (if == else) > > Both branches are the same, so remove the if/else altogeth

[PATCH -next] drm/amd/display: remove useless if/else

2020-10-29 Thread Zou Wei
Fix the following coccinelle report: ./drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:1367:3-5: WARNING: possible condition with no effect (if == else) Both branches are the same, so remove the if/else altogether. Fixes: 81875979f0b2 ("drm/amd/display: Remove extra pairs of parentheses in dce