[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200121135540.165798-4-chenzhou10@huawei.com>
Date: Tue, 21 Jan 2020 21:55:29 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <alexander.deucher@....com>, <christian.koenig@....com>,
<David1.Zhou@....com>, <airlied@...ux.ie>, <daniel@...ll.ch>
CC: <tao.zhou1@....com>, <Hawking.Zhang@....com>,
<Felix.Kuehling@....com>, <amd-gfx@...ts.freedesktop.org>,
<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<chenzhou10@...wei.com>
Subject: [PATCH -next 03/14] drm/amdgpu: remove unnecessary conversion to bool in navi10_ih.c
Fixes coccicheck warning:
./drivers/gpu/drm/amd/amdgpu/navi10_ih.c:429:40-45: WARNING:
conversion to bool not needed here
Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
index f737ce4..cf557a42 100644
--- a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
@@ -426,7 +426,7 @@ static int navi10_ih_set_clockgating_state(void *handle,
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
navi10_ih_update_clockgating_state(adev,
- state == AMD_CG_STATE_GATE ? true : false);
+ state == AMD_CG_STATE_GATE);
return 0;
}
--
2.7.4
Powered by blists - more mailing lists