Netdev List
 help / color / mirror / Atom feed
* irlap_frame.c: Duplicate set?
@ 2011-07-10 18:43 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2011-07-10 18:43 UTC (permalink / raw)
  To: Samuel Ortiz; +Cc: netdev

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);
}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-10 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-10 18:43 irlap_frame.c: Duplicate set? Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox