[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1310323421.3848.43.camel@Joe-Laptop>
Date: Sun, 10 Jul 2011 11:43:41 -0700
From: Joe Perches <joe@...ches.com>
To: Samuel Ortiz <samuel@...tiz.org>
Cc: netdev <netdev@...r.kernel.org>
Subject: irlap_frame.c: Duplicate set?
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);
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists