aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
commit215faf9c5f6e319e97edea9e178123e07825c14d (patch)
tree32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/vmxnet3
parent75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff)
drivers/net/*/: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index 939e5466c75e..d143e8b72b5b 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -1131,7 +1131,9 @@ static int
1131vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq, 1131vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq,
1132 struct vmxnet3_adapter *adapter, int quota) 1132 struct vmxnet3_adapter *adapter, int quota)
1133{ 1133{
1134 static u32 rxprod_reg[2] = {VMXNET3_REG_RXPROD, VMXNET3_REG_RXPROD2}; 1134 static const u32 rxprod_reg[2] = {
1135 VMXNET3_REG_RXPROD, VMXNET3_REG_RXPROD2
1136 };
1135 u32 num_rxd = 0; 1137 u32 num_rxd = 0;
1136 struct Vmxnet3_RxCompDesc *rcd; 1138 struct Vmxnet3_RxCompDesc *rcd;
1137 struct vmxnet3_rx_ctx *ctx = &rq->rx_ctx; 1139 struct vmxnet3_rx_ctx *ctx = &rq->rx_ctx;