]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu_vm: fix boolean expressions
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 3 Jan 2019 20:01:46 +0000 (14:01 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:50 +0000 (15:04 -0500)
commit7f7c1aa34b6d9969fb04a36ececa7a7630cfed90
treecae3a7c325c7e31530b0b8dc19a62a2ccc84cbe6
parent37ba40f967ee4a640ebb801494d7d1ee9edb0914
drm/amdgpu_vm: fix boolean expressions

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

This issue was detected with the help of Coccinelle.

Fixes: c096f0b5bb06 ("drm/amdgpu: Add vm context module param")
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c