Re: [PATCH] drm/amd/display: remove conversion to bool in dcn20_mpc.c

2020-04-27 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Apr 27, 2020 at 4:03 AM Christian König wrote: > > Am 27.04.20 um 08:37 schrieb Jason Yan: > > The '==' expression itself is bool, no need to convert it to bool again. > > This fixes the following coccicheck warning: > > > > drivers/gpu/drm/amd/display/dc/dcn20/dcn

Re: [PATCH] drm/amd/display: remove conversion to bool in dcn20_mpc.c

2020-04-27 Thread Christian König
Am 27.04.20 um 08:37 schrieb Jason Yan: The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c:455:70-75: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan Revie

[PATCH] drm/amd/display: remove conversion to bool in dcn20_mpc.c

2020-04-27 Thread Jason Yan
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c:455:70-75: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_m

Re: [PATCH] drm/amd/display: remove conversion to bool in dcn20_mpc.c

2020-04-27 Thread Joe Perches
On Mon, 2020-04-27 at 14:37 +0800, Jason Yan wrote: > The '==' expression itself is bool, no need to convert it to bool again. trivia: These descriptions are not quite correct. The operators return an int, either 0 or 1. - 6.5.8 Relational operators 6 Each of the operators < (le