From patchwork Thu Feb 11 09:10:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8277241 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 6D45DBEEE5 for ; Thu, 11 Feb 2016 09:10:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A6BB20373 for ; Thu, 11 Feb 2016 09:10:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4C8BD202EB for ; Thu, 11 Feb 2016 09:10:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AA4376E7EB; Thu, 11 Feb 2016 01:10:31 -0800 (PST) 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 A93BB6E7EB for ; Thu, 11 Feb 2016 01:10:30 -0800 (PST) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0Ll1ub-1Ztu122gnF-00ajIj; Thu, 11 Feb 2016 10:10:21 +0100 From: Arnd Bergmann To: Daniel Vetter , David Airlie Subject: [PATCH] drm/msm: remove unused variable Date: Thu, 11 Feb 2016 10:10:00 +0100 Message-Id: <1455181810-3910161-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:d/ONVZxSFFDq08PaOXeXOdlGGBUDkZL5aIChBuPZTtMcUgXPT+q EKbznNk/WyDdLPeZaWyTJseZdGROU5KQylCZqzxXY27uvhYbWKrj4e+XOBxi4sHsBw31f1b FeXdzfwoo8kSeUFDYm+G79THq9Fu2KEJb9B9OE9Eo+G8VtL9tCoK/xwWk/A5BWPRYkpRJJ6 2R6mN/Wl2FKFUhtUyVAEQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:P2jXm4UFH/c=:ud49BOgFWtT/jNGxqzR08/ BSP7y2pGi2IpVnNxw2oNH63sX1Gm+6NsytMpd+ApGvXUyIVLQVjEVgEHHkob1g2MKYInqQsis iatD5aKHXZAJaVd6oMp7Rl/bOqq44NvOjCiEuDcMCXjSwMH0QC99PgwnDjSKb0eAOKYfkTxVq gZlmH5oTvL6Gz9AyLdahYCRSXurA9xAraZxXOpuB/8tZw3xYq95j5dt535znTFkJ46FHkbnpI wnF6zypJ/qU9kTr3ZfiwwasgoW94yiAPMPxac2UZmNlpPYBivgiHAEjS2bgG5bRg+j+/gDD28 y+zLfQKJZcLpjJGffY+JxNIarsuOT9t8xeCx0/g44Lj0IXfoZIGDgXkpiQsANZUeZkKkTu1fy rgf5oJkD5QtGQpQDMb00HRDofzGqjsfLXoMRX11N8yzDFL7w4Z36f4uBxFbe/Nk+AIBJjCD4Q PEmuBAnj7DbvtA+UImCnbsma7wuC9FGrPna1/crLgZrOkqlKYdCL1I69HiymY4hrs4Rz03I9P uzHU8dx8QiBkp5fi5ImxKx2R2xqSFk3TR5gI6oz6boaKur7GD9I+mlTtq+e9yLngZ5Quy5Zgj g3KYpnmG4d1fuGNbnlSMvmvf9Q5iEW4tdO8w9FxqlCl9CDys7CwZoOsGZAAbl4saU1FTvFxhw oiJpk0+h0tUW6FH3S87v0hgNftDh6noJmAjr6afaO66hDF+m/bUTApVWDgK2IKxT92/E= Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?UTF-8?q?St=C3=A9phane=20Marchesin?= , linux-arm-kernel@lists.infradead.org, Haixia Shi 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=-4.4 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 After the drm_device_is_unplugged() was removed, the 'dev' variable is now unused, and we get a warning for that: drivers/gpu/drm/msm/msm_fbdev.c: In function 'msm_fbdev_mmap': drivers/gpu/drm/msm/msm_fbdev.c:65:21: error: unused variable 'dev' [-Werror=unused-variable] This removes the variable as well. Signed-off-by: Arnd Bergmann Fixes: e9f8250f2f92 ("drm/msm: remove the drm_device_is_unplugged check") --- drivers/gpu/drm/msm/msm_fbdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c index e119c2979509..d9759bf3482e 100644 --- a/drivers/gpu/drm/msm/msm_fbdev.c +++ b/drivers/gpu/drm/msm/msm_fbdev.c @@ -62,7 +62,6 @@ static int msm_fbdev_mmap(struct fb_info *info, struct vm_area_struct *vma) struct drm_fb_helper *helper = (struct drm_fb_helper *)info->par; struct msm_fbdev *fbdev = to_msm_fbdev(helper); struct drm_gem_object *drm_obj = fbdev->bo; - struct drm_device *dev = helper->dev; int ret = 0; ret = drm_gem_mmap_obj(drm_obj, drm_obj->size, vma);