Received: by 10.223.148.5 with SMTP id 5csp6222167wrq; Wed, 17 Jan 2018 10:51:36 -0800 (PST) X-Google-Smtp-Source: ACJfBov7nJ58WfGj+1BQ85GjhOr5i1bxWaXCjOMKtIWwAawLNHOmv2/B612nlSaoxpXiI4oViKV/ X-Received: by 10.99.60.13 with SMTP id j13mr23950286pga.306.1516215096054; Wed, 17 Jan 2018 10:51:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516215096; cv=none; d=google.com; s=arc-20160816; b=tRhJ1F3vuKs041paG3f5d8h2YeS/MzeZScED+/Xm4QltM4pVHJ1o9W14+9lKW7SHzI VObBrVQT2AW1UzgDN4yte32zGz/gtshTo2/apZfqrf9XcBSWQx70fVIvsyzd0WzxNLNB rwrQ8mXH0/ngXbelng+KxtBb1Za8ByVVql6mudDV8FHeJAN8N6s/u3BU9vfDcQxR/022 Ci2QmoVfN+EwS7R1stP58eNbT+1A18Xz8vEoo6ayKWMlF0yXHUyWS01azdAu6+3mLGTN TqQrBCAUb4/kUfThf6LFYo+XD+iyg785JMQvKwdInEzH8/wR8m7zu/P78EFB9yDdLLp8 oHtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=t0luT7ZL3ll/cVmdr1+SK2QboZq6x/F7JafDc0t80KI=; b=jKQ1DuGDXgwUgwYp+ljmoTvc1/uSbvgKrTA3FvZbF2uo/hDibCFLIJkW6YUlDGFetH cWbfSAK6TxGS7qedub/XdB1my0W7DAkRFk7D6NErenTcs6OWm4jas+o411H6500yjeVG ICg3P9Hz+H3sb4qvvQ5pG7FHV0FHRgDJaXVfBfn7s16hP9F943XfBuBIj++gHf4nkR8N LLUcIMEeLl/i95qhdpT0gMKqIX8HkV/Xfs2XZpDSKmovg//AaRFA7f+lVVCk9M3rbkA4 1LBHLWEblxjLWn9hZM6r6cn9DdFd9/BFPxBD2TdnNbVUUghWBqMVvyqG/3XDQT0pSat8 LwAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4899491plj.417.2018.01.17.10.51.21; Wed, 17 Jan 2018 10:51:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754476AbeAQSuz (ORCPT + 99 others); Wed, 17 Jan 2018 13:50:55 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:52110 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752368AbeAQSuy (ORCPT ); Wed, 17 Jan 2018 13:50:54 -0500 X-IronPort-AV: E=Sophos;i="5.46,372,1511827200"; d="scan'208";a="703942050" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Jan 2018 18:50:35 +0000 Received: from uecb1d7364e75593fe229.ant.amazon.com (iad1-ws-svc-lb91-vlan3.amazon.com [10.0.103.150]) by email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w0HIoQPD061542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Jan 2018 18:50:28 GMT Received: from uecb1d7364e75593fe229.ant.amazon.com (localhost [127.0.0.1]) by uecb1d7364e75593fe229.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w0HIoPmw025235; Wed, 17 Jan 2018 18:50:25 GMT Received: (from luisbg@localhost) by uecb1d7364e75593fe229.ant.amazon.com (8.15.2/8.15.2/Submit) id w0HIoOAZ025234; Wed, 17 Jan 2018 18:50:24 GMT From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Joe Perches , Alex Deucher , Christian Konig , David Airlie , Harry Wentland , Tony Cheng , Wenjing Liu , Ding Wang , Sylvia Tsai , Hersen Wu , Rex Zhu , Eric Huang , Huang Rui , Dan Carpenter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Luis de Bethencourt Subject: [PATCH] drm: amd: Fix trailing semicolons Date: Wed, 17 Jan 2018 18:50:20 +0000 Message-Id: <20180117185020.25169-1-luisbg@kernel.org> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The trailing semicolon is an empty statement that does no operation. Removing the two instances of them since they don't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards Luis [0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html [1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 61e8c3e02d16..33d91e4474ea 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -718,7 +718,7 @@ static enum link_training_result perform_channel_equalization_sequence( uint32_t retries_ch_eq; enum dc_lane_count lane_count = lt_settings->link_settings.lane_count; union lane_align_status_updated dpcd_lane_status_updated = {{0}}; - union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}};; + union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}}; hw_tr_pattern = get_supported_tp(link); diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c index fa9d1615a2cc..b98a7a8a22b5 100644 --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c @@ -162,7 +162,7 @@ static int pp_hw_init(void *handle) if(hwmgr->smumgr_funcs->start_smu(pp_handle->hwmgr)) { pr_err("smc start failed\n"); hwmgr->smumgr_funcs->smu_fini(pp_handle->hwmgr); - return -EINVAL;; + return -EINVAL; } if (ret == PP_DPM_DISABLED) goto exit; -- 2.15.1