From: Ben Hutchings Date: Tue, 19 Jun 2012 18:57:22 +0000 (+0100) Subject: sfc: Remove dead write to tso_state::packet_space X-Git-Tag: MMI-PSA29.97-13-9~16302^2~120^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e718905c4b02bfc650f383e02b643b7e60b9407e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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) EFX_BUG_ON_PARANOID(tcp_hdr(skb)->syn); EFX_BUG_ON_PARANOID(tcp_hdr(skb)->rst); - st->packet_space = st->full_packet_size; st->out_len = skb->len - st->header_len; st->unmap_len = 0; st->unmap_single = false;