diff options
author | Sjur Brændeland <sjur.brandeland@stericsson.com> | 2011-04-11 10:43:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-11 15:08:48 -0700 |
commit | 4dd820c088d201e526840c9dbc2f0b87a0a41868 (patch) | |
tree | fac7a3a70bd32df3104ae6f1273a727fb0fa006f /net/caif/cfveil.c | |
parent | 73d6ac633c6c0ca703f90db0b808d9593e46aef6 (diff) | |
download | talos-op-linux-4dd820c088d201e526840c9dbc2f0b87a0a41868.tar.gz talos-op-linux-4dd820c088d201e526840c9dbc2f0b87a0a41868.zip |
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>
Diffstat (limited to 'net/caif/cfveil.c')
-rw-r--r-- | net/caif/cfveil.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/caif/cfveil.c b/net/caif/cfveil.c index c3b1dec4acf6..1a588cd818ea 100644 --- a/net/caif/cfveil.c +++ b/net/caif/cfveil.c @@ -96,8 +96,5 @@ static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) info->channel_id = service->layer.id; info->hdr_len = 1; info->dev_info = &service->dev_info; - ret = layr->dn->transmit(layr->dn, pkt); - if (ret < 0) - cfpkt_extr_head(pkt, &tmp, 1); - return ret; + return layr->dn->transmit(layr->dn, pkt); } |