diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-06-19 14:57:22 -0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-07-17 11:12:30 -0400 |
commit | e718905c4b02bfc650f383e02b643b7e60b9407e (patch) | |
tree | e3e231a59267e28fa1c5a12e40b669705132f328 | |
parent | 0e33d87033d84768ae700217e7c52dfb0c3399ca (diff) |
sfc: Remove dead write to tso_state::packet_space
tso_state::packet_space is always set in tso_start_packet(); the
value set in tso_start() is not used, and is also incorrect.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r-- | drivers/net/ethernet/sfc/tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/tx.c b/drivers/net/ethernet/sfc/tx.c index 18860f241bc5..cfa5f6db20bd 100644 --- a/drivers/net/ethernet/sfc/tx.c +++ b/drivers/net/ethernet/sfc/tx.c | |||
@@ -926,7 +926,6 @@ static void tso_start(struct tso_state *st, const struct sk_buff *skb) | |||
926 | EFX_BUG_ON_PARANOID(tcp_hdr(skb)->syn); | 926 | EFX_BUG_ON_PARANOID(tcp_hdr(skb)->syn); |
927 | EFX_BUG_ON_PARANOID(tcp_hdr(skb)->rst); | 927 | EFX_BUG_ON_PARANOID(tcp_hdr(skb)->rst); |
928 | 928 | ||
929 | st->packet_space = st->full_packet_size; | ||
930 | st->out_len = skb->len - st->header_len; | 929 | st->out_len = skb->len - st->header_len; |
931 | st->unmap_len = 0; | 930 | st->unmap_len = 0; |
932 | st->unmap_single = false; | 931 | st->unmap_single = false; |