Chen Zhou
2020-Jan-19 13:19 UTC
[Nouveau] [PATCH -next] drm/ttm: remove unnecessary conversion to bool
The conversion to bool is not needed, remove it.
Signed-off-by: Chen Zhou <chenzhou10 at huawei.com>
---
drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c
b/drivers/gpu/drm/nouveau/nouveau_ttm.c
index 7ca0a24..0cbcbe1 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c
@@ -233,7 +233,7 @@ nouveau_ttm_init(struct nouveau_drm *drm)
&nouveau_bo_driver,
dev->anon_inode->i_mapping,
dev->vma_offset_manager,
- drm->client.mmu.dmabits <= 32 ? true : false);
+ drm->client.mmu.dmabits <= 32);
if (ret) {
NV_ERROR(drm, "error initialising bo driver, %d\n", ret);
return ret;
--
2.7.4
Seemingly Similar Threads
- [PATCH 3/4] drm/nouveau: stop using is_swiotlb_active
- [PATCH 2/8] drm/nouveau: switch to gem vma offset manager
- GT216M [GeForce GT 240M] (NV50/Tesla) sddm fails to start since commit 0a2f6372a43ff5e948b8b10be34d4473f6c2ef6c
- [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
- [PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
