All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Zhou <chenzhou10@huawei.com>
To: <alexander.deucher@amd.com>, <christian.koenig@amd.com>,
	<David1.Zhou@amd.com>, <airlied@linux.ie>, <daniel@ffwll.ch>
Cc: <tao.zhou1@amd.com>, <Hawking.Zhang@amd.com>,
	<Felix.Kuehling@amd.com>, <amd-gfx@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
	<chenzhou10@huawei.com>
Subject: [PATCH -next 06/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v1_0.c
Date: Tue, 21 Jan 2020 21:55:32 +0800	[thread overview]
Message-ID: <20200121135540.165798-7-chenzhou10@huawei.com> (raw)
In-Reply-To: <20200121135540.165798-1-chenzhou10@huawei.com>

Fixes coccicheck warning:

./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:77:40-45: WARNING:
	conversion to bool not needed here
./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:79:40-45: WARNING:
	conversion to bool not needed here

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
---
 drivers/gpu/drm/amd/amdgpu/athub_v1_0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
index d9cc746..847ca9b 100644
--- a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
@@ -74,9 +74,9 @@ int athub_v1_0_set_clockgating(struct amdgpu_device *adev,
 	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		athub_update_medium_grain_clock_gating(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		athub_update_medium_grain_light_sleep(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		break;
 	default:
 		break;
-- 
2.7.4


WARNING: multiple messages have this Message-ID (diff)
From: Chen Zhou <chenzhou10@huawei.com>
To: <alexander.deucher@amd.com>, <christian.koenig@amd.com>,
	<David1.Zhou@amd.com>, <airlied@linux.ie>, <daniel@ffwll.ch>
Cc: chenzhou10@huawei.com, Felix.Kuehling@amd.com, tao.zhou1@amd.com,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	amd-gfx@lists.freedesktop.org, Hawking.Zhang@amd.com
Subject: [PATCH -next 06/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v1_0.c
Date: Tue, 21 Jan 2020 21:55:32 +0800	[thread overview]
Message-ID: <20200121135540.165798-7-chenzhou10@huawei.com> (raw)
In-Reply-To: <20200121135540.165798-1-chenzhou10@huawei.com>

Fixes coccicheck warning:

./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:77:40-45: WARNING:
	conversion to bool not needed here
./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:79:40-45: WARNING:
	conversion to bool not needed here

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
---
 drivers/gpu/drm/amd/amdgpu/athub_v1_0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
index d9cc746..847ca9b 100644
--- a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
@@ -74,9 +74,9 @@ int athub_v1_0_set_clockgating(struct amdgpu_device *adev,
 	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		athub_update_medium_grain_clock_gating(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		athub_update_medium_grain_light_sleep(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		break;
 	default:
 		break;
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Chen Zhou <chenzhou10@huawei.com>
To: <alexander.deucher@amd.com>, <christian.koenig@amd.com>,
	<David1.Zhou@amd.com>, <airlied@linux.ie>, <daniel@ffwll.ch>
Cc: chenzhou10@huawei.com, Felix.Kuehling@amd.com, tao.zhou1@amd.com,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	amd-gfx@lists.freedesktop.org, Hawking.Zhang@amd.com
Subject: [PATCH -next 06/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v1_0.c
Date: Tue, 21 Jan 2020 21:55:32 +0800	[thread overview]
Message-ID: <20200121135540.165798-7-chenzhou10@huawei.com> (raw)
In-Reply-To: <20200121135540.165798-1-chenzhou10@huawei.com>

Fixes coccicheck warning:

./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:77:40-45: WARNING:
	conversion to bool not needed here
./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:79:40-45: WARNING:
	conversion to bool not needed here

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
---
 drivers/gpu/drm/amd/amdgpu/athub_v1_0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
index d9cc746..847ca9b 100644
--- a/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
@@ -74,9 +74,9 @@ int athub_v1_0_set_clockgating(struct amdgpu_device *adev,
 	case CHIP_VEGA20:
 	case CHIP_RAVEN:
 		athub_update_medium_grain_clock_gating(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		athub_update_medium_grain_light_sleep(adev,
-				state == AMD_CG_STATE_GATE ? true : false);
+				state == AMD_CG_STATE_GATE);
 		break;
 	default:
 		break;
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2020-01-21 14:01 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21 13:55 [PATCH -next 00/14] drm/amdgpu: remove unnecessary conversion to bool Chen Zhou
2020-01-21 13:55 ` Chen Zhou
2020-01-21 13:55 ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 01/14] drm/amdgpu: remove unnecessary conversion to bool in mmhub_v1_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 02/14] drm/amdgpu: remove unnecessary conversion to bool in vega10_ih.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 03/14] drm/amdgpu: remove unnecessary conversion to bool in navi10_ih.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 04/14] drm/amdgpu: remove unnecessary conversion to bool in gfx_v10_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 05/14] drm/amdgpu: remove unnecessary conversion to bool in sdma_v5_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` Chen Zhou [this message]
2020-01-21 13:55   ` [PATCH -next 06/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v1_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 07/14] drm/amdgpu: remove unnecessary conversion to bool in amdgpu_acp.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 08/14] drm/amdgpu: remove unnecessary conversion to bool in soc15.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 09/14] drm/amdgpu: remove unnecessary conversion to bool in nv.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 10/14] drm/amdgpu: remove unnecessary conversion to bool in mmhub_v9_4.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 11/14] drm/amdgpu: remove unnecessary conversion to bool in amdgpu_device.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 12/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v2_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 13/14] drm/amdgpu: remove unnecessary conversion to bool in sdma_v4_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55 ` [PATCH -next 14/14] drm/amdgpu: remove unnecessary conversion to bool in gfx_v9_0.c Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-21 13:55   ` Chen Zhou
2020-01-22 20:21 ` [PATCH -next 00/14] drm/amdgpu: remove unnecessary conversion to bool Alex Deucher
2020-01-22 20:21   ` Alex Deucher
2020-01-22 20:21   ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200121135540.165798-7-chenzhou10@huawei.com \
    --to=chenzhou10@huawei.com \
    --cc=David1.Zhou@amd.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tao.zhou1@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.