]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix boolean expression in get_surf_rq_param
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 3 Jan 2019 19:48:45 +0000 (13:48 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:50 +0000 (15:04 -0500)
commit9af0521278f48916b0f40337ee81b16f574fcbd8
treee1d28846c09abd6fd953db5fc633e487f9b2a172
parent94e74ace8a5e28ad4cbae0fa7aa402b68c72827a
drm/amd/display: Fix boolean expression in get_surf_rq_param

Fix boolean expression by using logical AND operator '&&'
instead of bitwise operator '&'.

This issue was detected with the help of Coccinelle.

Fixes: 5286ade33770 ("drm/amd/display: Restructuring and cleaning up DML")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c