From patchwork Sat Apr 16 20:41:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8862081 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2959BF29F for ; Sat, 16 Apr 2016 20:42:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25D8020211 for ; Sat, 16 Apr 2016 20:42:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3E664201CE for ; Sat, 16 Apr 2016 20:42:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B42F86E06E; Sat, 16 Apr 2016 20:42:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by gabe.freedesktop.org (Postfix) with ESMTPS id 938BF6E06E for ; Sat, 16 Apr 2016 20:42:38 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0MGJlf-1awjxo2wMB-00F9wl; Sat, 16 Apr 2016 22:42:31 +0200 From: Arnd Bergmann To: David Airlie , Rob Clark Subject: [PATCH] drm: msm: remove unused variable Date: Sat, 16 Apr 2016 22:41:46 +0200 Message-Id: <1460839349-1253588-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:dxJVKJqkyLzf9eKQcWFLY0knmqgg/bXoabf6hknC6TRuKyuaf3w dIQQplNYSHcLVPXh1uV0VLX6D5zrH8dveiUtv5WH0axJHCdw8dz0cij+tGdjIfLwxnMZaHb feoPS3FVOnz3C3CQK1ETZU+TyqBEJXIMDpxsE+Aohn1XTR8KbufWjCGpF+TUTgVUW0V2aVu 3j2Os2oEmx4PLfibew2WQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:oM8C4+ehspk=:C/4HEKiu3uYvivGfVstor6 eDN+LZQnLrZq9ApslbP72uQibOJxAKQOVmH4xRN7cyDNe94ZgOiKamcZkLArGWTcAx/BexUR1 QsxEWHpveW1e1+mZK6n+ULovM6ilT3Q2FK1IUoVF0XqaBlpPuomXY5qRXKUxZfh1W74SmO6FB UpB/oUJE25JLWS0a50zXK5VHkEPgPgSHE60ifAJEoeg0oLIiF43uoAnTvRgtBpkLRMcfyP4kr blwO7OEYRIDbaXH7cXyRZkv09K7FvmoZfj2jBfn7/n+qkwja8XWkEGy79zLmt4LDRULfu4aw/ LKpO/PvZldECr+fwB19M3IebrCALqc5Sx9kGHh6+sfKMorOdP28Fo+oOSyU4iBSmawW4teuWO AyrvDTyNuoS5mWtYb9vc3gxCRrxSc1ZcsKn2EWA0PG/8PcrDT4ObnOz3Inlr2lxN9vECdfb16 1nlBJ7gqzlaISo4qJJFLR6NhJLsUZMRpl8/hDzzEYJ/WG332GxEIGuOHjCcUF2u3BNUn1ZZci TrXMi8JsejUFgXz2myjsNdN8tvbRpPRHbpe83HCFsidBW+wWRdmiOdYe4dFfIedNIxq6xYdSj GHwJTUGtbFDns8DSyFY6gBbelEQrsaVk06z8MSz45BUQmd+VKTGFqn/iDeiU4x6nYdFsCSOqf JhmJ9KcjgWJngVgHgIjzDSkuOey2nxzV4xfoEuGGea1RyDKhkymILBqLvqGIZ62vhf4g= Cc: Daniel Vetter , dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.org 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A recent cleanup removed the only user of the 'kms' variable in msm_preclose(), causing a harmless compiler warning: drivers/gpu/drm/msm/msm_drv.c: In function 'msm_preclose': drivers/gpu/drm/msm/msm_drv.c:468:18: error: unused variable 'kms' [-Werror=unused-variable] This removes the variable as well. Signed-off-by: Arnd Bergmann Fixes: 4016260ba47a ("drm/msm: fix bug after preclose removal") Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c03b96709179..701c51ed3e7c 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -465,7 +465,6 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file) { struct msm_drm_private *priv = dev->dev_private; struct msm_file_private *ctx = file->driver_priv; - struct msm_kms *kms = priv->kms; mutex_lock(&dev->struct_mutex); if (ctx == priv->lastctx)