]> git.baikalelectronics.ru Git - kernel.git/commit
[BNX2]: Combine small mem allocations
authorMichael Chan <mchan@broadcom.com>
Thu, 23 Mar 2006 09:12:38 +0000 (01:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2006 09:12:38 +0000 (01:12 -0800)
commit86d193a1dfe02806b09b08da5ae8972577f526eb
tree7cac41b473b1e85d97df34a4fe4f6e329a534b6f
parent07cbfdde11a27f7a2fc16bee266d9d67a8c1a31a
[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>
drivers/net/bnx2.c
drivers/net/bnx2.h