From patchwork Tue Sep 20 08:57:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9341343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 668F5607D0 for ; Tue, 20 Sep 2016 08:57:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56A3F29D78 for ; Tue, 20 Sep 2016 08:57:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4917229D7B; Tue, 20 Sep 2016 08:57:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 17ECF29D78 for ; Tue, 20 Sep 2016 08:57:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A9A6C6E6AB; Tue, 20 Sep 2016 08:57:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 45A9E6E6AB for ; Tue, 20 Sep 2016 08:57:44 +0000 (UTC) Received: from [192.168.1.2] ([77.182.226.232]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MDg9K-1blfBs3lde-00H35e; Tue, 20 Sep 2016 10:57:39 +0200 Subject: [PATCH 2/6] GPU-DRM-GMA500: Rename a jump label in mid_get_vbt_data_r10() To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Patrik Jakobsson References: <566ABCD9.1060404@users.sourceforge.net> <3c9785ef-4553-2e3d-2cb2-5cf6d1f31ccd@users.sourceforge.net> From: SF Markus Elfring Message-ID: <29c651f1-8527-0f65-0b60-3503808c9d6d@users.sourceforge.net> Date: Tue, 20 Sep 2016 10:57:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3c9785ef-4553-2e3d-2cb2-5cf6d1f31ccd@users.sourceforge.net> X-Provags-ID: V03:K0:cxnqUlmNftz1Ck4M6RaMw0qldDZTj7MV314ErjMoZdfJ73Maz+p B1soD6RdIWE76Si8ke4f/WmVNbOuIWtOzbx+BZSLdyC/525ZAey+JWU/GqTkrDMAbMiVAvv P9phetEvC9kma3CoWySHh0W3Uc2vVi83lYf1pPgv1OLqDhI83MckzgSuRxDB3hlmq9Gsc4P b7tvi5fJgS5pBmgQaqD4w== X-UI-Out-Filterresults: notjunk:1; V01:K0:7KILj1clIJ8=:nx6jztTCTMoi/CfD0WRWxO MFKebDYDx5+zBr7JILcOdgrjf0MOJ0WcQDTOtnB50HYLclE4CtN6Ubz6jPEo3aTIKhWgfYugC cJV8yacSa6W9gAxkrzS4elrsx031uOkb1LnPG6V3hcbgkMbQdKgTorzWa7+mH2FFzJdhseZF2 +o30sXuEBsON26RRkc8l50BMjK6rOqCm9I8nw9LObtjdo40CjuI/NPuHBow0TIIf8kVDP4Fx3 tj68p2G5D4pHrcrSjDe49bA7u44X/6r3HOjne9W9QVMjYQM7qUiFxX8th1MwbWahkzsGcgWUr d0+gCPrkWk0uh/ERpT+/QNtKY417QK10x7E1nMFcpGFmv5bG/bv1Mfgp/tpElsRGOLz1d08AQ /UKu9feJyXMU2KZOFOvVV2IC28NlVSpVaO5pWDR5gGwuxElmwQbEmxwTYXSkYYThg3Yh+SPzV ahnXVDJi4u0YJWAAeaBmeY9b8+47ReoirQdcSYPeIWQwb3jm//rqB4TcoD4PKiLQjuXlKTA5I ryAdG0nseuBQNYuTRt6NqVRsW/u3U2AocGuCFNfQ0VfgCqmIG2+kIQIoZZ+Fh66CUjzzyupBW +CldqfCwmo0NRHg9n0At7IRhaYY06imGvRcsQAGeHpFbYEWY0Y7M8xOpSxIWl6SIUTGBCPtqP +gISiXi1tWVbO9Mmy3dNbG2DsPkxDSSrFojFUl+qBP6WOqhmhoH3LlOxRl4CZZM+icz/sg4te CuUXDb+z3C/ysv5MJ7ceXM3K2nPJOHxjHqQM0PFejgBFszLo/GMB18fOq6E3+FV4dFKUFg3yP Hop1RA1 Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 20 Sep 2016 09:09:10 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/gpu/drm/gma500/mid_bios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index a833568..cf4e605 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c @@ -242,7 +242,7 @@ static int mid_get_vbt_data_r10(struct drm_psb_private *dev_priv, u32 addr) gct_virtual = ioremap(addr + sizeof(vbt), sizeof(*gct) * vbt.panel_count); if (!gct_virtual) - goto out; + goto free_gct; memcpy_fromio(gct, gct_virtual, sizeof(*gct)); iounmap(gct_virtual); @@ -270,7 +270,7 @@ static int mid_get_vbt_data_r10(struct drm_psb_private *dev_priv, u32 addr) dp_ti->vsync_pulse_width_lo = ti->vsync_pulse_width_lo; ret = 0; -out: + free_gct: kfree(gct); return ret; }