aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/hdlc_ppp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c
index 055a918067e6..0d7645581f91 100644
--- a/drivers/net/wan/hdlc_ppp.c
+++ b/drivers/net/wan/hdlc_ppp.c
@@ -515,37 +515,37 @@ static int ppp_rx(struct sk_buff *skb)
515 switch (cp->code) { 515 switch (cp->code) {
516 case CP_CONF_REQ: 516 case CP_CONF_REQ:
517 ppp_cp_parse_cr(dev, pid, cp->id, len, skb->data); 517 ppp_cp_parse_cr(dev, pid, cp->id, len, skb->data);
518 goto out; 518 break;
519 519
520 case CP_CONF_ACK: 520 case CP_CONF_ACK:
521 if (cp->id == proto->cr_id) 521 if (cp->id == proto->cr_id)
522 ppp_cp_event(dev, pid, RCA, 0, 0, 0, NULL); 522 ppp_cp_event(dev, pid, RCA, 0, 0, 0, NULL);
523 goto out; 523 break;
524 524
525 case CP_CONF_REJ: 525 case CP_CONF_REJ:
526 case CP_CONF_NAK: 526 case CP_CONF_NAK:
527 if (cp->id == proto->cr_id) 527 if (cp->id == proto->cr_id)
528 ppp_cp_event(dev, pid, RCN, 0, 0, 0, NULL); 528 ppp_cp_event(dev, pid, RCN, 0, 0, 0, NULL);
529 goto out; 529 break;
530 530
531 case CP_TERM_REQ: 531 case CP_TERM_REQ:
532 ppp_cp_event(dev, pid, RTR, 0, cp->id, 0, NULL); 532 ppp_cp_event(dev, pid, RTR, 0, cp->id, 0, NULL);
533 goto out; 533 break;
534 534
535 case CP_TERM_ACK: 535 case CP_TERM_ACK:
536 ppp_cp_event(dev, pid, RTA, 0, 0, 0, NULL); 536 ppp_cp_event(dev, pid, RTA, 0, 0, 0, NULL);
537 goto out; 537 break;
538 538
539 case CP_CODE_REJ: 539 case CP_CODE_REJ:
540 ppp_cp_event(dev, pid, RXJ_BAD, 0, 0, 0, NULL); 540 ppp_cp_event(dev, pid, RXJ_BAD, 0, 0, 0, NULL);
541 goto out; 541 break;
542 542
543 default: 543 default:
544 len += sizeof(struct cp_header); 544 len += sizeof(struct cp_header);
545 if (len > dev->mtu) 545 if (len > dev->mtu)
546 len = dev->mtu; 546 len = dev->mtu;
547 ppp_cp_event(dev, pid, RUC, 0, 0, len, cp); 547 ppp_cp_event(dev, pid, RUC, 0, 0, len, cp);
548 goto out; 548 break;
549 } 549 }
550 goto out; 550 goto out;
551 551