Commit 30cd458b authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: hdlc: remove redundant blank lines

This patch removes some redundant blank lines.
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 00460eb1
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <net/net_namespace.h> #include <net/net_namespace.h>
static const char* version = "HDLC support module revision 1.22"; static const char* version = "HDLC support module revision 1.22";
#undef DEBUG_LINK #undef DEBUG_LINK
...@@ -82,8 +81,6 @@ static inline void hdlc_proto_start(struct net_device *dev) ...@@ -82,8 +81,6 @@ static inline void hdlc_proto_start(struct net_device *dev)
hdlc->proto->start(dev); hdlc->proto->start(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);
...@@ -91,8 +88,6 @@ static inline void hdlc_proto_stop(struct net_device *dev) ...@@ -91,8 +88,6 @@ static inline void hdlc_proto_stop(struct net_device *dev)
hdlc->proto->stop(dev); hdlc->proto->stop(dev);
} }
static int hdlc_device_event(struct notifier_block *this, unsigned long event, static int hdlc_device_event(struct notifier_block *this, unsigned long event,
void *ptr) void *ptr)
{ {
...@@ -141,8 +136,6 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event, ...@@ -141,8 +136,6 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
/* Must be called by hardware driver when HDLC device is being opened */ /* Must be called by hardware driver when HDLC device is being opened */
int hdlc_open(struct net_device *dev) int hdlc_open(struct net_device *dev)
{ {
...@@ -175,8 +168,6 @@ int hdlc_open(struct net_device *dev) ...@@ -175,8 +168,6 @@ int hdlc_open(struct net_device *dev)
return 0; return 0;
} }
/* Must be called by hardware driver when HDLC device is being closed */ /* Must be called by hardware driver when HDLC device is being closed */
void hdlc_close(struct net_device *dev) void hdlc_close(struct net_device *dev)
{ {
...@@ -198,8 +189,6 @@ void hdlc_close(struct net_device *dev) ...@@ -198,8 +189,6 @@ void hdlc_close(struct net_device *dev)
hdlc->proto->close(dev); hdlc->proto->close(dev);
} }
int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ {
struct hdlc_proto *proto = first_proto; struct hdlc_proto *proto = first_proto;
...@@ -271,8 +260,6 @@ void unregister_hdlc_device(struct net_device *dev) ...@@ -271,8 +260,6 @@ void unregister_hdlc_device(struct net_device *dev)
rtnl_unlock(); rtnl_unlock();
} }
int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto, int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto,
size_t size) size_t size)
{ {
...@@ -297,7 +284,6 @@ int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto, ...@@ -297,7 +284,6 @@ int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto,
return 0; return 0;
} }
int detach_hdlc_protocol(struct net_device *dev) int detach_hdlc_protocol(struct net_device *dev)
{ {
hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_device *hdlc = dev_to_hdlc(dev);
...@@ -323,7 +309,6 @@ int detach_hdlc_protocol(struct net_device *dev) ...@@ -323,7 +309,6 @@ int detach_hdlc_protocol(struct net_device *dev)
return 0; return 0;
} }
void register_hdlc_protocol(struct hdlc_proto *proto) void register_hdlc_protocol(struct hdlc_proto *proto)
{ {
rtnl_lock(); rtnl_lock();
...@@ -332,7 +317,6 @@ void register_hdlc_protocol(struct hdlc_proto *proto) ...@@ -332,7 +317,6 @@ void register_hdlc_protocol(struct hdlc_proto *proto)
rtnl_unlock(); rtnl_unlock();
} }
void unregister_hdlc_protocol(struct hdlc_proto *proto) void unregister_hdlc_protocol(struct hdlc_proto *proto)
{ {
struct hdlc_proto **p; struct hdlc_proto **p;
...@@ -347,8 +331,6 @@ void unregister_hdlc_protocol(struct hdlc_proto *proto) ...@@ -347,8 +331,6 @@ void unregister_hdlc_protocol(struct hdlc_proto *proto)
rtnl_unlock(); rtnl_unlock();
} }
MODULE_AUTHOR("Krzysztof Halasa <khc@pm.waw.pl>"); MODULE_AUTHOR("Krzysztof Halasa <khc@pm.waw.pl>");
MODULE_DESCRIPTION("HDLC support module"); MODULE_DESCRIPTION("HDLC support module");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
...@@ -369,12 +351,10 @@ static struct packet_type hdlc_packet_type __read_mostly = { ...@@ -369,12 +351,10 @@ static struct packet_type hdlc_packet_type __read_mostly = {
.func = hdlc_rcv, .func = hdlc_rcv,
}; };
static struct notifier_block hdlc_notifier = { static struct notifier_block hdlc_notifier = {
.notifier_call = hdlc_device_event, .notifier_call = hdlc_device_event,
}; };
static int __init hdlc_module_init(void) static int __init hdlc_module_init(void)
{ {
int result; int result;
...@@ -386,14 +366,11 @@ static int __init hdlc_module_init(void) ...@@ -386,14 +366,11 @@ static int __init hdlc_module_init(void)
return 0; return 0;
} }
static void __exit hdlc_module_exit(void) static void __exit hdlc_module_exit(void)
{ {
dev_remove_pack(&hdlc_packet_type); dev_remove_pack(&hdlc_packet_type);
unregister_netdevice_notifier(&hdlc_notifier); unregister_netdevice_notifier(&hdlc_notifier);
} }
module_init(hdlc_module_init); module_init(hdlc_module_init);
module_exit(hdlc_module_exit); module_exit(hdlc_module_exit);
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