Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289845
b: refs/heads/master
c: b5d5843
h: refs/heads/master
i:
  289843: 2a39cfd
v: v3
  • Loading branch information
Akinobu Mita authored and David S. Miller committed Feb 1, 2012
1 parent 1c14a61 commit fb8b7cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: 658ddaaf6694adf63f67451dec9ddeb87a7cb2d7
refs/heads/master: b5d5843a1dd0031d63d9d9484346d86eae9cab3b
16 changes: 3 additions & 13 deletions trunk/drivers/isdn/mISDN/l1oip_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)
struct l1oip *hc = bch->hw;
int ret = -EINVAL;
struct mISDNhead *hh = mISDN_HEAD_P(skb);
int l, ll, i;
int l, ll;
unsigned char *p;

switch (hh->prim) {
Expand All @@ -1128,13 +1128,8 @@ handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)
break;
}
/* check for AIS / ulaw-silence */
p = skb->data;
l = skb->len;
for (i = 0; i < l; i++) {
if (*p++ != 0xff)
break;
}
if (i == l) {
if (!memchr_inv(skb->data, 0xff, l)) {
if (debug & DEBUG_L1OIP_MSG)
printk(KERN_DEBUG "%s: got AIS, not sending, "
"but counting\n", __func__);
Expand All @@ -1144,13 +1139,8 @@ handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)
return 0;
}
/* check for silence */
p = skb->data;
l = skb->len;
for (i = 0; i < l; i++) {
if (*p++ != 0x2a)
break;
}
if (i == l) {
if (!memchr_inv(skb->data, 0x2a, l)) {
if (debug & DEBUG_L1OIP_MSG)
printk(KERN_DEBUG "%s: got silence, not sending"
", but counting\n", __func__);
Expand Down

0 comments on commit fb8b7cc

Please sign in to comment.