Skip to contentSkip to conversation

irlap_frame.c: Duplicate set?

DISCUSSION Joe Perches 1 participant 1 message Jul 10, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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