Skip to content

Commit 89c0d26

Browse files
Alexey DobriyanJeff Garzik
authored andcommitted
atl1: remove write-only var in tx handler
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 099575b commit 89c0d26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/atl1/atl1_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,14 +634,13 @@ static void atl1_intr_tx(struct atl1_adapter *adapter)
634634
struct atl1_buffer *buffer_info;
635635
u16 sw_tpd_next_to_clean;
636636
u16 cmb_tpd_next_to_clean;
637-
u8 update = 0;
638637

639638
sw_tpd_next_to_clean = atomic_read(&tpd_ring->next_to_clean);
640639
cmb_tpd_next_to_clean = le16_to_cpu(adapter->cmb.cmb->tpd_cons_idx);
641640

642641
while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {
643642
struct tx_packet_desc *tpd;
644-
update = 1;
643+
645644
tpd = ATL1_TPD_DESC(tpd_ring, sw_tpd_next_to_clean);
646645
buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean];
647646
if (buffer_info->dma) {

0 commit comments

Comments
 (0)