From: Zheng Bin <zhengbin13@huawei.com>
To: <alexander.deucher@amd.com>, <christian.koenig@amd.com>,
<David1.Zhou@amd.com>, <airlied@linux.ie>, <daniel@ffwll.ch>,
<amd-gfx@lists.freedesktop.org>,
<dri-devel@lists.freedesktop.org>
Cc: zhengbin13@huawei.com
Subject: [PATCH 13/14] drm/radeon: remove comparison to bool in rv515.c
Date: Wed, 6 May 2020 22:33:25 +0800 [thread overview]
Message-ID: <20200506143326.66467-14-zhengbin13@huawei.com> (raw)
In-Reply-To: <20200506143326.66467-1-zhengbin13@huawei.com>
Fixes coccicheck warning:
drivers/gpu/drm/radeon/rv515.c:666:5-37: WARNING: Comparison to bool
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
drivers/gpu/drm/radeon/rv515.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c
index 147e5cf8348d..77e6b9dcdb69 100644
--- a/drivers/gpu/drm/radeon/rv515.c
+++ b/drivers/gpu/drm/radeon/rv515.c
@@ -663,7 +663,7 @@ int rv515_init(struct radeon_device *rdev)
RREG32(R_0007C0_CP_STAT));
}
/* check if cards are posted or not */
- if (radeon_boot_test_post_card(rdev) == false)
+ if (!radeon_boot_test_post_card(rdev))
return -EINVAL;
/* Initialize clocks */
radeon_get_clock_info(rdev->ddev);
--
2.26.0.106.g9fadedd
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-05-07 7:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 14:33 [PATCH 00/14] drm/radeon: remove comparison to bool Zheng Bin
2020-05-06 14:33 ` [PATCH 01/14] drm/radeon: remove comparison to bool in btc_dpm.c Zheng Bin
2020-05-06 14:33 ` [PATCH 02/14] drm/radeon: remove comparison to bool in ci_dpm.c Zheng Bin
2020-05-06 14:33 ` [PATCH 03/14] drm/radeon: remove comparison to bool in ni_dpm.c Zheng Bin
2020-05-06 14:33 ` [PATCH 04/14] drm/radeon: remove comparison to bool in radeon_atpx_handler.c Zheng Bin
2020-05-06 14:33 ` [PATCH 05/14] drm/radeon: remove comparison to bool in radeon_object.c Zheng Bin
2020-05-06 14:33 ` [PATCH 06/14] drm/radeon: remove comparison to bool in radeon_ttm.c Zheng Bin
2020-05-06 14:33 ` [PATCH 07/14] drm/radeon: remove comparison to bool in r100.c Zheng Bin
2020-05-06 14:33 ` [PATCH 08/14] drm/radeon: remove comparison to bool in r300.c Zheng Bin
2020-05-06 14:33 ` [PATCH 09/14] drm/radeon: remove comparison to bool in r600.c Zheng Bin
2020-05-06 14:33 ` [PATCH 10/14] drm/radeon: remove comparison to bool in rs600.c Zheng Bin
2020-05-06 14:33 ` [PATCH 11/14] drm/radeon: remove comparison to bool in rs690.c Zheng Bin
2020-05-06 14:33 ` [PATCH 12/14] drm/radeon: remove comparison to bool in rv6xx_dpm.c Zheng Bin
2020-05-06 14:33 ` Zheng Bin [this message]
2020-05-06 14:33 ` [PATCH 14/14] drm/radeon: remove comparison to bool in si_dpm.c Zheng Bin
2020-05-06 16:00 ` [PATCH 00/14] drm/radeon: remove comparison to bool 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=20200506143326.66467-14-zhengbin13@huawei.com \
--to=zhengbin13@huawei.com \
--cc=David1.Zhou@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 \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).