caif: Don't resend if dev_queue_xmit fails.
If CAIF Link Layer returns an error, we no longer try to re-build the CAIF packet and resend it. Instead, we simply return any transmission errors to the socket client. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
73d6ac633c
commit
4dd820c088
@@ -108,10 +108,5 @@ static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt)
|
||||
*/
|
||||
info->hdr_len = 4;
|
||||
info->dev_info = &service->dev_info;
|
||||
ret = layr->dn->transmit(layr->dn, pkt);
|
||||
if (ret < 0) {
|
||||
u32 tmp32;
|
||||
cfpkt_extr_head(pkt, &tmp32, 4);
|
||||
}
|
||||
return ret;
|
||||
return layr->dn->transmit(layr->dn, pkt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user