]> git.karo-electronics.de Git - linux-beck.git/commitdiff
atl1c: remove dmaw_block
authorHuang, Xiong <xiong@qca.qualcomm.com>
Tue, 17 Apr 2012 19:32:34 +0000 (19:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2012 19:35:31 +0000 (15:35 -0400)
dmaw_block is never used in the driver, remove it.

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Tested-by: Liu David <dwliu@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c.h
drivers/net/ethernet/atheros/atl1c/atl1c_main.c

index 973c5681c70a71ea34b0e270e45446cc0fa767c7..0a4bfab7a19a3f6e7fb4d5748212801f1ca98438 100644 (file)
@@ -374,7 +374,6 @@ struct atl1c_hw {
        enum atl1c_dma_order dma_order;
        enum atl1c_dma_rcb   rcb_value;
        enum atl1c_dma_req_block dmar_block;
-       enum atl1c_dma_req_block dmaw_block;
 
        u16 device_id;
        u16 vendor_id;
index 461305e1f7632044dfbe14b0f73440b0829d77ad..a689e09be3c32006f40b7431823e08e635df96d8 100644 (file)
@@ -740,7 +740,6 @@ static int __devinit atl1c_sw_init(struct atl1c_adapter *adapter)
        hw->rfd_burst = 8;
        hw->dma_order = atl1c_dma_ord_out;
        hw->dmar_block = atl1c_dma_req_1024;
-       hw->dmaw_block = atl1c_dma_req_1024;
        hw->dmar_dly_cnt = 15;
        hw->dmaw_dly_cnt = 4;
 
@@ -1056,9 +1055,6 @@ static void atl1c_configure_tx(struct atl1c_adapter *adapter)
        AT_WRITE_REG(hw, REG_TX_TSO_OFFLOAD_THRESH,
                (tx_offload_thresh >> 3) & TX_TSO_OFFLOAD_THRESH_MASK);
        AT_READ_REG(hw, REG_DEVICE_CTRL, &dev_ctrl_data);
-       max_pay_load  = (dev_ctrl_data >> DEVICE_CTRL_MAX_PAYLOAD_SHIFT) &
-                       DEVICE_CTRL_MAX_PAYLOAD_MASK;
-       hw->dmaw_block = min_t(u32, max_pay_load, hw->dmaw_block);
        max_pay_load  = (dev_ctrl_data >> DEVICE_CTRL_MAX_RREQ_SZ_SHIFT) &
                        DEVICE_CTRL_MAX_RREQ_SZ_MASK;
        hw->dmar_block = min_t(u32, max_pay_load, hw->dmar_block);