diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-06-21 23:18:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-23 16:16:28 -0400 |
commit | 9665982885f0e11ea9e3c5d9bfc7ead48d08c83f (patch) | |
tree | 2b58902a183a9733cfd8862277540734c68b5234 /drivers/net/qlcnic/qlcnic.h | |
parent | 406818ff347cbbdae2fb21fafd1939d00cf479c5 (diff) |
qlcnic: cleanup skb allocation
No need to maintian separate state for alloced and freed skb.
This can be done by null check.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 99ccdd8ac419..86e47811c25b 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -381,7 +381,6 @@ struct qlcnic_rx_buffer { | |||
381 | struct sk_buff *skb; | 381 | struct sk_buff *skb; |
382 | u64 dma; | 382 | u64 dma; |
383 | u16 ref_handle; | 383 | u16 ref_handle; |
384 | u16 state; | ||
385 | }; | 384 | }; |
386 | 385 | ||
387 | /* Board types */ | 386 | /* Board types */ |
@@ -423,7 +422,6 @@ struct qlcnic_adapter_stats { | |||
423 | u64 xmit_on; | 422 | u64 xmit_on; |
424 | u64 xmit_off; | 423 | u64 xmit_off; |
425 | u64 skb_alloc_failure; | 424 | u64 skb_alloc_failure; |
426 | u64 null_skb; | ||
427 | u64 null_rxbuf; | 425 | u64 null_rxbuf; |
428 | u64 rx_dma_map_error; | 426 | u64 rx_dma_map_error; |
429 | u64 tx_dma_map_error; | 427 | u64 tx_dma_map_error; |