Commit 1029d6b5 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Linus Torvalds

[PATCH] PCI: remove unused "scratch"

Unused variable.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dba28010
...@@ -7,7 +7,6 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp, ...@@ -7,7 +7,6 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp,
char *buffer, int buffer_size) char *buffer, int buffer_size)
{ {
struct pci_dev *pdev; struct pci_dev *pdev;
char *scratch;
int i = 0; int i = 0;
int length = 0; int length = 0;
...@@ -18,9 +17,6 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp, ...@@ -18,9 +17,6 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp,
if (!pdev) if (!pdev)
return -ENODEV; return -ENODEV;
scratch = buffer;
if (add_hotplug_env_var(envp, num_envp, &i, if (add_hotplug_env_var(envp, num_envp, &i,
buffer, buffer_size, &length, buffer, buffer_size, &length,
"PCI_CLASS=%04X", pdev->class)) "PCI_CLASS=%04X", pdev->class))
......
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