net/mlx5: Avoid blank lines before/after closing/opening braces
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 28 May 2017 12:35:27 +0000 (15:35 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:12:40 +0000 (00:12 +0300)
Fixed checkpatch complaints on that:

 CHECK: Blank lines aren't necessary before a close brace '}'
 CHECK: Blank lines aren't necessary after an open brace '{'

and one on missing blank line..

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

index 5afec0f4a6588b8198603ff3f890a24e617ff53a..c803a533ec3c59f31e889be4310591326b0d1265 100644 (file)
@@ -3067,7 +3067,6 @@ mlx5e_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats)
         */
        stats->multicast =
                VPORT_COUNTER_GET(vstats, received_eth_multicast.packets);
-
 }
 
 static void mlx5e_set_rx_mode(struct net_device *dev)
index 70c2b8d020bd6d45311c4469de058a0a9f581bf6..01798e1ab66712b90e992f8e2a40d971df80a69b 100644 (file)
@@ -1019,7 +1019,6 @@ err_destroy_netdev:
        mlx5e_destroy_netdev(netdev_priv(netdev));
        kfree(rpriv);
        return err;
-
 }
 
 static void
index 37927156f258cb50cb29f0ea4d23a559b4f8a81f..89bfda419efe96efc1778ec832ff0eac56588cc5 100644 (file)
@@ -1217,7 +1217,6 @@ static int esw_vport_ingress_config(struct mlx5_eswitch *esw,
                               "vport[%d] configure ingress rules failed, illegal mac with spoofchk\n",
                               vport->vport);
                return -EPERM;
-
        }
 
        esw_vport_cleanup_ingress_rules(esw, vport);
index 6380c2db355acedda9cfe568769b127cfae67cf7..e8690fe46bf26ea204c190abd1be12128dafc530 100644 (file)
@@ -104,6 +104,7 @@ struct node_caps {
        size_t  arr_sz;
        long    *caps;
 };
+
 static struct init_tree_node {
        enum fs_node_type       type;
        struct init_tree_node *children;
@@ -1858,7 +1859,6 @@ static int create_anchor_flow_table(struct mlx5_flow_steering *steering)
 
 static int init_root_ns(struct mlx5_flow_steering *steering)
 {
-
        steering->root_ns = create_root_ns(steering, FS_FT_NIC_RX);
        if (!steering->root_ns)
                goto cleanup;