diff options
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r-- | drivers/net/qla3xxx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 771bb614ccc9..2f6914025efc 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -2873,7 +2873,7 @@ static int ql_alloc_mem_resources(struct ql3_adapter *qdev) | |||
2873 | PAGE_SIZE, &qdev->shadow_reg_phy_addr); | 2873 | PAGE_SIZE, &qdev->shadow_reg_phy_addr); |
2874 | 2874 | ||
2875 | if (qdev->shadow_reg_virt_addr != NULL) { | 2875 | if (qdev->shadow_reg_virt_addr != NULL) { |
2876 | qdev->preq_consumer_index = (u16 *) qdev->shadow_reg_virt_addr; | 2876 | qdev->preq_consumer_index = qdev->shadow_reg_virt_addr; |
2877 | qdev->req_consumer_index_phy_addr_high = | 2877 | qdev->req_consumer_index_phy_addr_high = |
2878 | MS_64BITS(qdev->shadow_reg_phy_addr); | 2878 | MS_64BITS(qdev->shadow_reg_phy_addr); |
2879 | qdev->req_consumer_index_phy_addr_low = | 2879 | qdev->req_consumer_index_phy_addr_low = |
@@ -3114,8 +3114,7 @@ static int ql_adapter_initialize(struct ql3_adapter *qdev) | |||
3114 | qdev->small_buf_release_cnt = 8; | 3114 | qdev->small_buf_release_cnt = 8; |
3115 | qdev->lrg_buf_q_producer_index = qdev->num_lbufq_entries - 1; | 3115 | qdev->lrg_buf_q_producer_index = qdev->num_lbufq_entries - 1; |
3116 | qdev->lrg_buf_release_cnt = 8; | 3116 | qdev->lrg_buf_release_cnt = 8; |
3117 | qdev->lrg_buf_next_free = | 3117 | qdev->lrg_buf_next_free = qdev->lrg_buf_q_virt_addr; |
3118 | (struct bufq_addr_element *)qdev->lrg_buf_q_virt_addr; | ||
3119 | qdev->small_buf_index = 0; | 3118 | qdev->small_buf_index = 0; |
3120 | qdev->lrg_buf_index = 0; | 3119 | qdev->lrg_buf_index = 0; |
3121 | qdev->lrg_buf_free_count = 0; | 3120 | qdev->lrg_buf_free_count = 0; |