From patchwork Thu Oct 25 13:09:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Murzov X-Patchwork-Id: 1645501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 4248F3FE1C for ; Thu, 25 Oct 2012 16:12:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 117F8A0A5C for ; Thu, 25 Oct 2012 09:12:44 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 351 seconds by postgrey-1.32 at gabe; Thu, 25 Oct 2012 15:16:34 CEST Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by gabe.freedesktop.org (Postfix) with ESMTP id D3A0FA09BF for ; Thu, 25 Oct 2012 06:16:34 -0700 (PDT) Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward5.mail.yandex.net (Yandex) with ESMTP id 6F92D1201063; Thu, 25 Oct 2012 17:10:39 +0400 (MSK) Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id 3792FAA05BA; Thu, 25 Oct 2012 17:10:37 +0400 (MSK) Received: from unknown (unknown [46.173.39.73]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id A1PaiGQl-AaPO1pST; Thu, 25 Oct 2012 17:10:37 +0400 From: Igor Murzov To: Alex Deucher , David Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] vga_switcheroo: Drop unused include and unused variables. Date: Thu, 25 Oct 2012 17:09:01 +0400 Message-Id: <1351170541-22570-2-git-send-email-e-mail@date.by> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1351170541-22570-1-git-send-email-e-mail@date.by> References: <1351170541-22570-1-git-send-email-e-mail@date.by> X-Mailman-Approved-At: Thu, 25 Oct 2012 09:09:31 -0700 Cc: Igor Murzov , linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Signed-off-by: Igor Murzov --- drivers/gpu/vga/vga_switcheroo.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index e25cf31..fa60add 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c @@ -18,7 +18,6 @@ */ #include -#include #include #include #include @@ -376,7 +375,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) { char usercmd[64]; - const char *pdev_name; int ret; bool delay = false, can_switch; bool just_mux = false; @@ -468,7 +466,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, goto out; if (can_switch) { - pdev_name = pci_name(client->pdev); ret = vga_switchto_stage1(client); if (ret) printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret); @@ -540,7 +537,6 @@ fail: int vga_switcheroo_process_delayed_switch(void) { struct vga_switcheroo_client *client; - const char *pdev_name; int ret; int err = -EINVAL; @@ -555,7 +551,6 @@ int vga_switcheroo_process_delayed_switch(void) if (!client || !check_can_switch()) goto err; - pdev_name = pci_name(client->pdev); ret = vga_switchto_stage2(client); if (ret) printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret); @@ -567,4 +562,3 @@ err: return err; } EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch); -