Commit 9499c82d authored by Igor Murzov's avatar Igor Murzov Committed by Dave Airlie

vga_switcheroo: Drop unused include and unused variables.

Signed-off-by: default avatarIgor Murzov <e-mail@date.by>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 83ef7777
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/dmi.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/fs.h> #include <linux/fs.h>
...@@ -376,7 +375,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, ...@@ -376,7 +375,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,
size_t cnt, loff_t *ppos) size_t cnt, loff_t *ppos)
{ {
char usercmd[64]; char usercmd[64];
const char *pdev_name;
int ret; int ret;
bool delay = false, can_switch; bool delay = false, can_switch;
bool just_mux = false; bool just_mux = false;
...@@ -468,7 +466,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, ...@@ -468,7 +466,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,
goto out; goto out;
if (can_switch) { if (can_switch) {
pdev_name = pci_name(client->pdev);
ret = vga_switchto_stage1(client); ret = vga_switchto_stage1(client);
if (ret) if (ret)
printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret); printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret);
...@@ -540,7 +537,6 @@ static int vga_switcheroo_debugfs_init(struct vgasr_priv *priv) ...@@ -540,7 +537,6 @@ static int vga_switcheroo_debugfs_init(struct vgasr_priv *priv)
int vga_switcheroo_process_delayed_switch(void) int vga_switcheroo_process_delayed_switch(void)
{ {
struct vga_switcheroo_client *client; struct vga_switcheroo_client *client;
const char *pdev_name;
int ret; int ret;
int err = -EINVAL; int err = -EINVAL;
...@@ -555,7 +551,6 @@ int vga_switcheroo_process_delayed_switch(void) ...@@ -555,7 +551,6 @@ int vga_switcheroo_process_delayed_switch(void)
if (!client || !check_can_switch()) if (!client || !check_can_switch())
goto err; goto err;
pdev_name = pci_name(client->pdev);
ret = vga_switchto_stage2(client); ret = vga_switchto_stage2(client);
if (ret) if (ret)
printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret); printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret);
...@@ -567,4 +562,3 @@ int vga_switcheroo_process_delayed_switch(void) ...@@ -567,4 +562,3 @@ int vga_switcheroo_process_delayed_switch(void)
return err; return err;
} }
EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch); EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment