6lowpan: remove unnecessary ret variable
Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Werner Almesberger <werner@almesberger.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
747edc0f9e
commit
545f3613a8
|
@ -1120,7 +1120,7 @@ lowpan_fragment_xmit(struct sk_buff *skb, u8 *head,
|
|||
int mlen, int plen, int offset, int type)
|
||||
{
|
||||
struct sk_buff *frag;
|
||||
int hlen, ret;
|
||||
int hlen;
|
||||
|
||||
hlen = (type == LOWPAN_DISPATCH_FRAG1) ?
|
||||
LOWPAN_FRAG1_HEAD_SIZE : LOWPAN_FRAGN_HEAD_SIZE;
|
||||
|
@ -1145,9 +1145,7 @@ lowpan_fragment_xmit(struct sk_buff *skb, u8 *head,
|
|||
lowpan_raw_dump_table(__func__, " raw fragment dump", frag->data,
|
||||
frag->len);
|
||||
|
||||
ret = dev_queue_xmit(frag);
|
||||
|
||||
return ret;
|
||||
return dev_queue_xmit(frag);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue