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:
3d8fe98
)
enic: fix compile when CONFIG_PCI_IOV is not enabled
author
Roopa Prabhu
<
[email protected]
>
Thu, 19 Jan 2012 22:25:36 +0000
(22:25 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 20 Jan 2012 18:39:20 +0000
(13:39 -0500)
reverting back change that access enic->num_vfs outside
CONFIG_PCI_IOV
Reported-by: Randy Dunlap <
[email protected]
>
Signed-off-by: Roopa Prabhu <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/cisco/enic/enic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cisco/enic/enic_main.c
b/drivers/net/ethernet/cisco/enic/enic_main.c
index 045c468ac8efa568166075426c57721a477dbe13..ab3f67f980d8c3f7554d19bf3fdbaf275deefed3 100644
(file)
--- a/
drivers/net/ethernet/cisco/enic/enic_main.c
+++ b/
drivers/net/ethernet/cisco/enic/enic_main.c
@@
-2273,7
+2273,7
@@
static int __devinit enic_probe(struct pci_dev *pdev,
#ifdef CONFIG_PCI_IOV
int pos = 0;
#endif
- int num_pps;
+ int num_pps
= 1
;
/* Allocate net device structure and initialize. Private
* instance data is initialized to zero.
@@
-2380,11
+2380,11
@@
static int __devinit enic_probe(struct pci_dev *pdev,
goto err_out_vnic_unregister;
}
enic->priv_flags |= ENIC_SRIOV_ENABLED;
+ num_pps = enic->num_vfs;
}
}
#endif
- num_pps = enic->num_vfs ? enic->num_vfs : 1;
/* Allocate structure for port profiles */
enic->pp = kcalloc(num_pps, sizeof(*enic->pp), GFP_KERNEL);
if (!enic->pp) {