mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
omapfb/dss: remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis <afd@ti.com> Cc: Jiri Kosina <trivial@kernel.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191016180424.23907-1-afd@ti.com
This commit is contained in:
parent
7610bca71e
commit
80805774fc
@ -1635,7 +1635,7 @@ static void dispc_ovl_set_scaling_uv(enum omap_plane plane,
|
|||||||
{
|
{
|
||||||
int scale_x = out_width != orig_width;
|
int scale_x = out_width != orig_width;
|
||||||
int scale_y = out_height != orig_height;
|
int scale_y = out_height != orig_height;
|
||||||
bool chroma_upscale = plane != OMAP_DSS_WB ? true : false;
|
bool chroma_upscale = plane != OMAP_DSS_WB;
|
||||||
|
|
||||||
if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE))
|
if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE))
|
||||||
return;
|
return;
|
||||||
@ -3100,9 +3100,9 @@ static bool _dispc_mgr_pclk_ok(enum omap_channel channel,
|
|||||||
unsigned long pclk)
|
unsigned long pclk)
|
||||||
{
|
{
|
||||||
if (dss_mgr_is_lcd(channel))
|
if (dss_mgr_is_lcd(channel))
|
||||||
return pclk <= dispc.feat->max_lcd_pclk ? true : false;
|
return pclk <= dispc.feat->max_lcd_pclk;
|
||||||
else
|
else
|
||||||
return pclk <= dispc.feat->max_tv_pclk ? true : false;
|
return pclk <= dispc.feat->max_tv_pclk;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dispc_mgr_timings_ok(enum omap_channel channel,
|
bool dispc_mgr_timings_ok(enum omap_channel channel,
|
||||||
|
Loading…
Reference in New Issue
Block a user