Commit 04cc04f0 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: hdlc: add blank line after declarations

This patch fixes the checkpatch error about missing a blank line
after declarations.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30cd458b
...@@ -77,6 +77,7 @@ netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -77,6 +77,7 @@ netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev)
static inline void hdlc_proto_start(struct net_device *dev) static inline void hdlc_proto_start(struct net_device *dev)
{ {
hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_device *hdlc = dev_to_hdlc(dev);
if (hdlc->proto->start) if (hdlc->proto->start)
hdlc->proto->start(dev); hdlc->proto->start(dev);
} }
...@@ -84,6 +85,7 @@ static inline void hdlc_proto_start(struct net_device *dev) ...@@ -84,6 +85,7 @@ static inline void hdlc_proto_start(struct net_device *dev)
static inline void hdlc_proto_stop(struct net_device *dev) static inline void hdlc_proto_stop(struct net_device *dev)
{ {
hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_device *hdlc = dev_to_hdlc(dev);
if (hdlc->proto->stop) if (hdlc->proto->stop)
hdlc->proto->stop(dev); hdlc->proto->stop(dev);
} }
...@@ -150,6 +152,7 @@ int hdlc_open(struct net_device *dev) ...@@ -150,6 +152,7 @@ int hdlc_open(struct net_device *dev)
if (hdlc->proto->open) { if (hdlc->proto->open) {
int result = hdlc->proto->open(dev); int result = hdlc->proto->open(dev);
if (result) if (result)
return result; return result;
} }
...@@ -245,6 +248,7 @@ static void hdlc_setup(struct net_device *dev) ...@@ -245,6 +248,7 @@ static void hdlc_setup(struct net_device *dev)
struct net_device *alloc_hdlcdev(void *priv) struct net_device *alloc_hdlcdev(void *priv)
{ {
struct net_device *dev; struct net_device *dev;
dev = alloc_netdev(sizeof(struct hdlc_device), "hdlc%d", dev = alloc_netdev(sizeof(struct hdlc_device), "hdlc%d",
NET_NAME_UNKNOWN, hdlc_setup); NET_NAME_UNKNOWN, hdlc_setup);
if (dev) if (dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment