Skip to content

Commit

Permalink
vga_switcheroo: Drop unused include and unused variables.
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Murzov <e-mail@date.by>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Igor Murzov authored and Dave Airlie committed Nov 20, 2012
1 parent 83ef777 commit 9499c82
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/gpu/vga/vga_switcheroo.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -540,7 +537,6 @@ static int vga_switcheroo_debugfs_init(struct vgasr_priv *priv)
int vga_switcheroo_process_delayed_switch(void)
{
struct vga_switcheroo_client *client;
const char *pdev_name;
int ret;
int err = -EINVAL;

Expand All @@ -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);
Expand All @@ -567,4 +562,3 @@ int vga_switcheroo_process_delayed_switch(void)
return err;
}
EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch);

0 comments on commit 9499c82

Please sign in to comment.