Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314610
b: refs/heads/master
c: 4e7bb59
h: refs/heads/master
v: v3
  • Loading branch information
Kim Lilliestierna XX authored and David S. Miller committed Jun 25, 2012
1 parent d3ce48e commit b9dd9ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f315fd355ffaec6a9ad541081975ac821404256e
refs/heads/master: 4e7bb59d49fb00d4cf13484386d0400783f2c826
11 changes: 4 additions & 7 deletions trunk/drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,11 @@ static void cfhsi_rx_done(struct cfhsi *cfhsi)
if (desc_pld_len < 0)
goto out_of_sync;

if (desc_pld_len > 0)
if (desc_pld_len > 0) {
rx_len = desc_pld_len;

if (desc_pld_len > 0 &&
(piggy_desc->header & CFHSI_PIGGY_DESC))
rx_len += CFHSI_DESC_SZ;
if (piggy_desc->header & CFHSI_PIGGY_DESC)
rx_len += CFHSI_DESC_SZ;
}

/*
* Copy needed information from the piggy-backed
Expand All @@ -695,8 +694,6 @@ static void cfhsi_rx_done(struct cfhsi *cfhsi)
CFHSI_DESC_SHORT_SZ);
/* Mark no embedded frame here */
piggy_desc->offset = 0;
if (desc_pld_len == -EPROTO)
goto out_of_sync;
}
}

Expand Down

0 comments on commit b9dd9ab

Please sign in to comment.