projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61ee019
)
rapidio/tsi721: fix unused variable compiler warning
author
Alexandre Bounine
<alexandre.bounine@idt.com>
Tue, 21 Aug 2012 23:16:12 +0000
(16:16 -0700)
committer
Ben Hutchings
<ben@decadent.org.uk>
Wed, 12 Sep 2012 02:37:27 +0000
(
03:37
+0100)
commit
9a9a9a7adafe62a34de8b4fb48936c1c5f9bafa5
upstream.
Fix unused variable compiler warning when built with CONFIG_RAPIDIO_DEBUG
option off.
This patch is applicable to kernel versions starting from v3.2
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/rapidio/devices/tsi721.c
patch
|
blob
|
history
diff --git
a/drivers/rapidio/devices/tsi721.c
b/drivers/rapidio/devices/tsi721.c
index 91e0f316b611fbdacfc0ec295ef03da4daeb6933..33471e11a73834b2d87a00fcce7437ff5489dc58 100644
(file)
--- a/
drivers/rapidio/devices/tsi721.c
+++ b/
drivers/rapidio/devices/tsi721.c
@@
-2162,7
+2162,7
@@
static int __devinit tsi721_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
struct tsi721_device *priv;
- int
i,
cap;
+ int cap;
int err;
u32 regval;
@@
-2182,12
+2182,15
@@
static int __devinit tsi721_probe(struct pci_dev *pdev,
priv->pdev = pdev;
#ifdef DEBUG
+ {
+ int i;
for (i = 0; i <= PCI_STD_RESOURCE_END; i++) {
dev_dbg(&pdev->dev, "res[%d] @ 0x%llx (0x%lx, 0x%lx)\n",
i, (unsigned long long)pci_resource_start(pdev, i),
(unsigned long)pci_resource_len(pdev, i),
pci_resource_flags(pdev, i));
}
+ }
#endif
/*
* Verify BAR configuration