projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3670e7e
)
rapidio/tsi721: fix unused variable compiler warning
author
Alexandre Bounine
<
[email protected]
>
Tue, 21 Aug 2012 23:16:12 +0000
(16:16 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 21 Aug 2012 23:45:03 +0000
(16:45 -0700)
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 <
[email protected]
>
Cc: Matt Porter <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rapidio/devices/tsi721.c
patch
|
blob
|
history
diff --git
a/drivers/rapidio/devices/tsi721.c
b/drivers/rapidio/devices/tsi721.c
index c0d6a049cbd69416c8f86afa674553a5ba30d21a..5d44252b7342f3d72dd5060770f2b42ef3bb2e8f 100644
(file)
--- a/
drivers/rapidio/devices/tsi721.c
+++ b/
drivers/rapidio/devices/tsi721.c
@@
-2219,7
+2219,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;
@@
-2239,12
+2239,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