]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
atl1c: duplicate atl1c_get_tpd
authorJie Yang <jie.yang@atheros.com>
Wed, 28 Oct 2009 05:31:19 +0000 (22:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:54:51 +0000 (15:54 -0700)
commit 678b77e265f6d66f1e68f3d095841c44ba5ab112 upstream.

remove duplicate atl1c_get_tpd, it may cause hardware to send wrong packets.

Signed-off-by: Jie Yang <jie.yang@atheros.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/atl1c/atl1c_main.c

index be00ee973546e436b0dddf5284f80924fdc7f597..77d9f3dd4bc701839d409fe9f7fdc881c64ad78e 100644 (file)
@@ -1976,8 +1976,6 @@ static void atl1c_tx_map(struct atl1c_adapter *adapter,
                else {
                        use_tpd = atl1c_get_tpd(adapter, type);
                        memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
-                       use_tpd = atl1c_get_tpd(adapter, type);
-                       memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
                }
                buffer_info = atl1c_get_tx_buffer(adapter, use_tpd);
                buffer_info->length = buf_len - mapped_len;