irlap_frame.c: Duplicate set?
From: Joe Perches <joe@perches.com>
Date: 2011-07-10 18:43:42
From: Joe Perches <joe@perches.com>
Date: 2011-07-10 18:43:42
frame->caddr is consecutively set to multiple values.
The first set can probably be removed.
net/irda/irlap_frame.c
[...]
void irlap_send_rd_frame(struct irlap_cb *self)
{
struct sk_buff *tx_skb;
struct rd_frame *frame;
tx_skb = alloc_skb(sizeof(struct rd_frame), GFP_ATOMIC);
if (!tx_skb)
return;
frame = (struct rd_frame *)skb_put(tx_skb, 2);
frame->caddr = self->caddr;
frame->caddr = RD_RSP | PF_BIT;
irlap_queue_xmit(self, tx_skb);
}