aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-03-23 04:12:38 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-23 04:12:38 -0500
commit0f31f99446270e66c6f18c7d87aadd7db1dad214 (patch)
tree7cac41b473b1e85d97df34a4fe4f6e329a534b6f /drivers/net/bnx2.h
parentbf5295bba804a6aead9bc1c0d5970173a9d4e08e (diff)
[BNX2]: Combine small mem allocations
Combine two small (56 byte and 320 byte) pci consistent memory allocations into one allocation. Jeff Garzik suggested to store the combined size in the bp structure for later use when freeing the memory. Use kzalloc() instead of kmalloc() + memset(). Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 18bc0919cc9e..5d132b00e8fd 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -4083,6 +4083,8 @@ struct bnx2 {
4083 4083
4084 struct flash_spec *flash_info; 4084 struct flash_spec *flash_info;
4085 u32 flash_size; 4085 u32 flash_size;
4086
4087 int status_stats_size;
4086}; 4088};
4087 4089
4088static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); 4090static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset);