Skip to content

Commit

Permalink
net: hdlc_ppp: add blank line after declarations
Browse files Browse the repository at this point in the history
This patch fixes the checkpatch error about missing a blank line
after declarations.

Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Guangbin Huang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
321lipeng authored and davem330 committed Jun 17, 2021
1 parent f271606 commit 2b57681
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wan/hdlc_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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-"
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2b57681

Please sign in to comment.