From patchwork Mon Jul 22 15:41:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 2831431 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5A4079F243 for ; Mon, 22 Jul 2013 15:39:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1076020206 for ; Mon, 22 Jul 2013 15:39:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D989F20204 for ; Mon, 22 Jul 2013 15:39:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757378Ab3GVPjm (ORCPT ); Mon, 22 Jul 2013 11:39:42 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:56674 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756220Ab3GVPjk (ORCPT ); Mon, 22 Jul 2013 11:39:40 -0400 Received: by mail-wi0-f169.google.com with SMTP id c10so2887218wiw.0 for ; Mon, 22 Jul 2013 08:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=HBjeBtni2EogtheVuqFq4pTjiquA6MOiYHuOSOJOXUk=; b=X47VZu6DIob3EFrF0udyTRx29njhdV2kyQOOvnj5lGvWmCKaczl83Jfl5TxsFnJTlg Y1YxMycg6nkkjP54XUO++pz0AjQcNnnMc/ouZf1o5b64HNUsuzdCQfgZ9vU0PuEUhsLA NBkcoxCpO6AORVTxCt3tvKmmhPiqxeJUL70EIrsqJCfJk7FbHNxuXG84Qt/C49dCDf1l EUZhxrn/Y2fZOLuW/s+qnw3aUAQUZPjT8+fRM0IeBkb7HdzOcll1vBvQu9J1wTM7Vf/S t5K36jXz46xX4RYhIe1JhKKbQrubQ0zTsnhjR21Z2iNmabKLDyVxkEycYXu2Pm1C1dv7 HTJA== X-Received: by 10.181.12.80 with SMTP id eo16mr30400960wid.44.1374507579347; Mon, 22 Jul 2013 08:39:39 -0700 (PDT) Received: from jack.europe.nokia.com ([131.228.216.129]) by mx.google.com with ESMTPSA id d8sm41527101wiz.0.2013.07.22.08.39.37 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Jul 2013 08:39:38 -0700 (PDT) From: andi.shyti@gmail.com To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, andi@etezian.org, andi.shyti@gmail.com Subject: [PATCH] vga16fb: remove unused variable Date: Mon, 22 Jul 2013 17:41:00 +0200 Message-Id: <1374507660-8142-1-git-send-email-andi.shyti@gmail.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: Andi Shyti This patch gets rid of the following warning: drivers/video/vga16fb.c: In function ‘vga16fb_destroy’: drivers/video/vga16fb.c:1268:26: warning: unused variable ‘dev’ [-Wunused-variable] struct platform_device *dev = container_of(info->device, struct platform_device, dev); ^ As described, the 'dev' variable is no longer used, therefore it can be removed. Signed-off-by: Andi Shyti --- drivers/video/vga16fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/vga16fb.c b/drivers/video/vga16fb.c index 830ded4..2827333 100644 --- a/drivers/video/vga16fb.c +++ b/drivers/video/vga16fb.c @@ -1265,7 +1265,6 @@ static void vga16fb_imageblit(struct fb_info *info, const struct fb_image *image static void vga16fb_destroy(struct fb_info *info) { - struct platform_device *dev = container_of(info->device, struct platform_device, dev); iounmap(info->screen_base); fb_dealloc_cmap(&info->cmap); /* XXX unshare VGA regions */