[patch 05/18] PCI: remove unused "scratch"

Greg KH
2005-09-22T07:49:07Z

[-- Attachment #1: pci-remove-unused-scratch.patch --]
[-- Type: text/plain, Size: 711 bytes --]

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

Unused variable.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
drivers/pci/hotplug.c | 4 ----
1 file changed, 4 deletions(-)

--- scsi-2.6.orig/drivers/pci/hotplug.c 2005-09-20 05:59:55.000000000 -0700
+++ scsi-2.6/drivers/pci/hotplug.c 2005-09-21 17:29:27.000000000 -0700
@@ -7,7 +7,6 @@
char *buffer, int buffer_size)
{
struct pci_dev *pdev;
- char *scratch;
int i = 0;
int length = 0;

@@ -18,9 +17,6 @@
if (!pdev)
return -ENODEV;

- scratch = buffer;
-
-
if (add_hotplug_env_var(envp, num_envp, &i,
buffer, buffer_size, &length,
"PCI_CLASS=%04X", pdev->class))

--