From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id C63DA10E595 for ; Thu, 24 Aug 2023 16:15:19 +0000 (UTC) From: Aurabindo Pillai To: Date: Thu, 24 Aug 2023 12:15:04 -0400 Message-ID: <20230824161504.154365-3-aurabindo.pillai@amd.com> In-Reply-To: <20230824161504.154365-1-aurabindo.pillai@amd.com> References: <20230824161504.154365-1-aurabindo.pillai@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH 3/3] lib/amdgpu: checkpatch.pl fixes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hersenxs.wu@amd.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: fix checkpatch.pl identified issue: typo and braces Signed-off-by: Aurabindo Pillai --- lib/igt_amd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/igt_amd.c b/lib/igt_amd.c index 49ca9e6d9..3199bf159 100644 --- a/lib/igt_amd.c +++ b/lib/igt_amd.c @@ -1154,7 +1154,8 @@ void igt_amd_allow_edp_hotplug_detect(int drm_fd, char *connector_name, bool ena close(hpd_fd); } -static bool get_dm_capabilites(int drm_fd, char *buf, size_t size) { +static bool get_dm_capabilities(int drm_fd, char *buf, size_t size) +{ int ret, fd; bool has_capablities = amd_has_debugfs(drm_fd, DEBUGFS_DM_CAPABILITIES); @@ -1183,7 +1184,7 @@ static bool get_dm_capabilites(int drm_fd, char *buf, size_t size) { * * @param drm_fd DRM file descriptor * @return true if dm capabilities interface exists and MALL is supported - * @return false if capabilites could not be read. + * @return false if capabilities could not be read. */ void igt_amd_get_mall_status(int drm_fd, u32 *supported, u32 *enabled) { @@ -1193,7 +1194,7 @@ void igt_amd_get_mall_status(int drm_fd, u32 *supported, u32 *enabled) *supported = false; *enabled = false; - if (!get_dm_capabilites(drm_fd, buf, 1024)) + if (!get_dm_capabilities(drm_fd, buf, 1024)) return false; mall_loc = strstr(buf, "mall supported: yes"); -- 2.41.0