net/ieee802154: Remove and add extra blank lines as needed.
authorStefan Schmidt <s.schmidt@samsung.com>
Thu, 4 Dec 2014 10:51:59 +0000 (11:51 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 11:43:05 +0000 (12:43 +0100)
Some have been missing and some have been needed. Just cosmetics.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan_rtnl.c
net/ieee802154/af_ieee802154.c
net/ieee802154/dgram.c
net/ieee802154/netlink.c
net/ieee802154/nl-mac.c
net/ieee802154/nl-phy.c
net/ieee802154/raw.c

index 16f5e91bd3908eb53582a063a232634a259d38b2..27eaa65e88e16ad51a70c33711f6f91d0e8fd61c 100644 (file)
@@ -439,7 +439,6 @@ static void lowpan_set_lockdep_class_one(struct net_device *dev,
                          &lowpan_netdev_xmit_lock_key);
 }
 
-
 static int lowpan_dev_init(struct net_device *dev)
 {
        netdev_for_each_tx_queue(dev, lowpan_set_lockdep_class_one, NULL);
index 26da1e179737365b08436f5ec5157bc506f0e05f..d0a1282cdf43560750da759a2dfe12f98ced8815 100644 (file)
@@ -99,6 +99,7 @@ static int ieee802154_sock_release(struct socket *sock)
        }
        return 0;
 }
+
 static int ieee802154_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
                                   struct msghdr *msg, size_t len)
 {
@@ -231,7 +232,6 @@ static const struct proto_ops ieee802154_dgram_ops = {
 #endif
 };
 
-
 /* Create a socket. Initialise the socket, blank the addresses
  * set the state.
  */
@@ -320,7 +320,6 @@ drop:
        return NET_RX_DROP;
 }
 
-
 static struct packet_type ieee802154_packet_type = {
        .type = htons(ETH_P_IEEE802154),
        .func = ieee802154_rcv,
@@ -354,6 +353,7 @@ err_dgram:
 out:
        return rc;
 }
+
 static void __exit af_ieee802154_remove(void)
 {
        dev_remove_pack(&ieee802154_packet_type);
index 3d58befef467b406c4c8b8b0585f5a35d21863a7..8db240b0f82b28f9fe9135601da5ad4fd37aea80 100644 (file)
@@ -154,7 +154,6 @@ static int dgram_ioctl(struct sock *sk, int cmd, unsigned long arg)
                spin_unlock_bh(&sk->sk_receive_queue.lock);
                return put_user(amount, (int __user *)arg);
        }
-
        }
 
        return -ENOIOCTLCMD;
index 3cdfa78b2f6eff54bf09db4454ac912b5dafa160..fa1464762d0dafdc481b68a7cbf46cfd45d8b30a 100644 (file)
@@ -147,7 +147,6 @@ static const struct genl_multicast_group ieee802154_mcgrps[] = {
        [IEEE802154_BEACON_MCGRP] = { .name = IEEE802154_MCAST_BEACON_NAME, },
 };
 
-
 int __init ieee802154_nl_init(void)
 {
        return genl_register_family_with_ops_groups(&nl802154_family,
index 1f085ed944d2cf9f701ae7fadb649fe013de5911..cd919493c976000e6b5cd206014110500e68886e 100644 (file)
@@ -346,7 +346,6 @@ int ieee802154_start_req(struct sk_buff *skb, struct genl_info *info)
        else
                page = 0;
 
-
        if (addr.short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST)) {
                ieee802154_nl_start_confirm(dev, IEEE802154_NO_SHORT_ADDRESS);
                dev_put(dev);
@@ -397,7 +396,6 @@ int ieee802154_scan_req(struct sk_buff *skb, struct genl_info *info)
        else
                page = 0;
 
-
        ret = ieee802154_mlme_ops(dev)->scan_req(dev, type, channels,
                                                 page, duration);
 
@@ -548,8 +546,6 @@ out:
        return rc;
 }
 
-
-
 static int
 ieee802154_llsec_parse_key_id(struct genl_info *info,
                              struct ieee802154_llsec_key_id *desc)
@@ -765,8 +761,6 @@ out:
        return rc;
 }
 
-
-
 struct llsec_dump_data {
        struct sk_buff *skb;
        int s_idx, s_idx2;
@@ -843,8 +837,6 @@ ieee802154_nl_llsec_change(struct sk_buff *skb, struct genl_info *info,
        return rc;
 }
 
-
-
 static int
 ieee802154_llsec_parse_key(struct genl_info *info,
                           struct ieee802154_llsec_key *key)
@@ -989,8 +981,6 @@ int ieee802154_llsec_dump_keys(struct sk_buff *skb, struct netlink_callback *cb)
        return ieee802154_llsec_dump_table(skb, cb, llsec_iter_keys);
 }
 
-
-
 static int
 llsec_parse_dev(struct genl_info *info,
                struct ieee802154_llsec_device *dev)
@@ -1121,8 +1111,6 @@ int ieee802154_llsec_dump_devs(struct sk_buff *skb, struct netlink_callback *cb)
        return ieee802154_llsec_dump_table(skb, cb, llsec_iter_devs);
 }
 
-
-
 static int llsec_add_devkey(struct net_device *dev, struct genl_info *info)
 {
        struct ieee802154_mlme_ops *ops = ieee802154_mlme_ops(dev);
@@ -1237,8 +1225,6 @@ int ieee802154_llsec_dump_devkeys(struct sk_buff *skb,
        return ieee802154_llsec_dump_table(skb, cb, llsec_iter_devkeys);
 }
 
-
-
 static int
 llsec_parse_seclevel(struct genl_info *info,
                     struct ieee802154_llsec_seclevel *sl)
index 62463544d05641dd38b96b03ab3b106effdb2430..7baf98b146116bd52f961c371d31a33878c0b8d8 100644 (file)
@@ -94,7 +94,6 @@ int ieee802154_list_phy(struct sk_buff *skb, struct genl_info *info)
        if (name[nla_len(info->attrs[IEEE802154_ATTR_PHY_NAME]) - 1] != '\0')
                return -EINVAL; /* phy name should be null-terminated */
 
-
        phy = wpan_phy_find(name);
        if (!phy)
                return -ENODEV;
index 3ffcf4a9de01c8d35d062c76e4ad115965bb3af4..f0c61e5b806e5fcce2c004ddc7f86fb4bbc0aca0 100644 (file)
@@ -221,7 +221,6 @@ static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
        return NET_RX_SUCCESS;
 }
 
-
 void ieee802154_raw_deliver(struct net_device *dev, struct sk_buff *skb)
 {
        struct sock *sk;