drm/amdgpu: fix logic error for checking amdgpu_vram_page_split
authorjimqu <Jim.Qu@amd.com>
Mon, 7 Nov 2016 01:53:10 +0000 (09:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Nov 2016 15:21:05 +0000 (10:21 -0500)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: JimQu <Jim.Qu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 9e16e975f31ad7f5021dd2d38ec0d08af96add58..91d30f2e05ae32b17c48f1ea20ea178f81b95710 100644 (file)
@@ -1030,8 +1030,8 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
                amdgpu_vm_block_size = 9;
        }
 
-       if ((amdgpu_vram_page_split != -1 && amdgpu_vram_page_split < 16) ||
-           !amdgpu_check_pot_argument(amdgpu_vram_page_split)) {
+       if (amdgpu_vram_page_split != -1 && (amdgpu_vram_page_split < 16 ||
+           !amdgpu_check_pot_argument(amdgpu_vram_page_split))) {
                dev_warn(adev->dev, "invalid VRAM page split (%d)\n",
                         amdgpu_vram_page_split);
                amdgpu_vram_page_split = 1024;