diff options
author | Peng Li <lipeng321@huawei.com> | 2021-06-17 22:03:15 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-17 12:08:46 -0700 |
commit | 2b57681f94aff059e75a7a5041f0f66ce0627fc4 (patch) | |
tree | 1b3052b41deb301a5be89d557763615f8ba84727 /drivers/net/wan/hdlc_ppp.c | |
parent | f271606f5289c87a3c18cb1cee9ff9ac03c6cb64 (diff) | |
download | linux-stable-2b57681f94aff059e75a7a5041f0f66ce0627fc4.tar.gz linux-stable-2b57681f94aff059e75a7a5041f0f66ce0627fc4.tar.bz2 linux-stable-2b57681f94aff059e75a7a5041f0f66ce0627fc4.zip |
net: hdlc_ppp: add blank line after declarations
This patch fixes the checkpatch error about missing a blank line
after declarations.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/hdlc_ppp.c')
-rw-r--r-- | drivers/net/wan/hdlc_ppp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c index e25b2f058d8c..32f01d7e12d4 100644 --- a/drivers/net/wan/hdlc_ppp.c +++ b/drivers/net/wan/hdlc_ppp.c @@ -41,6 +41,7 @@ static const char *const code_names[CP_CODES] = { "0", "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej", "ProtoRej", "EchoReq", "EchoReply", "Discard" }; + static char debug_buffer[64 + 3 * DEBUG_CP]; #endif @@ -90,6 +91,7 @@ static const char *const state_names[STATES] = { "Closed", "Stopped", "Stopping", "ReqSent", "AckRecv", "AckSent", "Opened" }; + static const char *const event_names[EVENTS] = { "Start", "Stop", "TO+", "TO-", "RCR+", "RCR-", "RCA", "RCN", "RTR", "RTA", "RUC", "RXJ+", "RXJ-" @@ -194,6 +196,7 @@ static int ppp_hard_header(struct sk_buff *skb, struct net_device *dev, static void ppp_tx_flush(void) { struct sk_buff *skb; + while ((skb = skb_dequeue(&tx_queue)) != NULL) dev_queue_xmit(skb); } @@ -616,6 +619,7 @@ static void ppp_start(struct net_device *dev) for (i = 0; i < IDX_COUNT; i++) { struct proto *proto = &ppp->protos[i]; + proto->dev = dev; timer_setup(&proto->timer, ppp_timer, 0); proto->state = CLOSED; |