net/mlx5: Avoid using multiple blank lines
Fixed bunch of this checkpatch complaint: CHECK: Please don't use multiple blank lines Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
bd10838af2
commit
1b9f533a90
|
@ -274,7 +274,6 @@ void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mlx5_db_free);
|
EXPORT_SYMBOL_GPL(mlx5_db_free);
|
||||||
|
|
||||||
|
|
||||||
void mlx5_fill_page_array(struct mlx5_buf *buf, __be64 *pas)
|
void mlx5_fill_page_array(struct mlx5_buf *buf, __be64 *pas)
|
||||||
{
|
{
|
||||||
u64 addr;
|
u64 addr;
|
||||||
|
|
|
@ -217,7 +217,6 @@ static void free_cmd(struct mlx5_cmd_work_ent *ent)
|
||||||
kfree(ent);
|
kfree(ent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int verify_signature(struct mlx5_cmd_work_ent *ent)
|
static int verify_signature(struct mlx5_cmd_work_ent *ent)
|
||||||
{
|
{
|
||||||
struct mlx5_cmd_mailbox *next = ent->out->next;
|
struct mlx5_cmd_mailbox *next = ent->out->next;
|
||||||
|
@ -1001,7 +1000,6 @@ static ssize_t dbg_write(struct file *filp, const char __user *buf,
|
||||||
return err ? err : count;
|
return err ? err : count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const struct file_operations fops = {
|
static const struct file_operations fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = simple_open,
|
.open = simple_open,
|
||||||
|
|
|
@ -168,7 +168,6 @@ static ssize_t average_read(struct file *filp, char __user *buf, size_t count,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static ssize_t average_write(struct file *filp, const char __user *buf,
|
static ssize_t average_write(struct file *filp, const char __user *buf,
|
||||||
size_t count, loff_t *pos)
|
size_t count, loff_t *pos)
|
||||||
{
|
{
|
||||||
|
@ -466,7 +465,6 @@ static ssize_t dbg_read(struct file *filp, char __user *buf, size_t count,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (is_str)
|
if (is_str)
|
||||||
ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field);
|
ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field);
|
||||||
else
|
else
|
||||||
|
@ -562,7 +560,6 @@ void mlx5_debug_qp_remove(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp)
|
||||||
rem_res_tree(qp->dbg);
|
rem_res_tree(qp->dbg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq)
|
int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
|
@ -145,7 +145,6 @@ int mlx5e_refresh_tirs(struct mlx5e_priv *priv, bool enable_uc_lb)
|
||||||
int inlen;
|
int inlen;
|
||||||
void *in;
|
void *in;
|
||||||
|
|
||||||
|
|
||||||
inlen = MLX5_ST_SZ_BYTES(modify_tir_in);
|
inlen = MLX5_ST_SZ_BYTES(modify_tir_in);
|
||||||
in = kvzalloc(inlen, GFP_KERNEL);
|
in = kvzalloc(inlen, GFP_KERNEL);
|
||||||
if (!in)
|
if (!in)
|
||||||
|
|
|
@ -170,7 +170,6 @@ static int __mlx5e_add_vlan_rule(struct mlx5e_priv *priv,
|
||||||
|
|
||||||
spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
|
spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
|
||||||
|
|
||||||
|
|
||||||
switch (rule_type) {
|
switch (rule_type) {
|
||||||
case MLX5E_VLAN_RULE_TYPE_UNTAGGED:
|
case MLX5E_VLAN_RULE_TYPE_UNTAGGED:
|
||||||
rule_p = &priv->fs.vlan.untagged_rule;
|
rule_p = &priv->fs.vlan.untagged_rule;
|
||||||
|
|
|
@ -677,7 +677,6 @@ int mlx5_eq_init(struct mlx5_core_dev *dev)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void mlx5_eq_cleanup(struct mlx5_core_dev *dev)
|
void mlx5_eq_cleanup(struct mlx5_core_dev *dev)
|
||||||
{
|
{
|
||||||
mlx5_eq_debugfs_cleanup(dev);
|
mlx5_eq_debugfs_cleanup(dev);
|
||||||
|
@ -689,7 +688,6 @@ int mlx5_start_eqs(struct mlx5_core_dev *dev)
|
||||||
u64 async_event_mask = MLX5_ASYNC_EVENT_MASK;
|
u64 async_event_mask = MLX5_ASYNC_EVENT_MASK;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
|
||||||
if (MLX5_CAP_GEN(dev, port_type) == MLX5_CAP_PORT_TYPE_ETH &&
|
if (MLX5_CAP_GEN(dev, port_type) == MLX5_CAP_PORT_TYPE_ETH &&
|
||||||
MLX5_CAP_GEN(dev, vport_group_manager) &&
|
MLX5_CAP_GEN(dev, vport_group_manager) &&
|
||||||
mlx5_core_is_pf(dev))
|
mlx5_core_is_pf(dev))
|
||||||
|
|
|
@ -467,7 +467,6 @@ static void mlx5_lag_dev_remove_pf(struct mlx5_lag *ldev,
|
||||||
mutex_unlock(&lag_mutex);
|
mutex_unlock(&lag_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Must be called with intf_mutex held */
|
/* Must be called with intf_mutex held */
|
||||||
void mlx5_lag_add(struct mlx5_core_dev *dev, struct net_device *netdev)
|
void mlx5_lag_add(struct mlx5_core_dev *dev, struct net_device *netdev)
|
||||||
{
|
{
|
||||||
|
@ -586,4 +585,3 @@ bool mlx5_lag_intf_add(struct mlx5_interface *intf, struct mlx5_priv *priv)
|
||||||
/* If bonded, we do not add an IB device for PF1. */
|
/* If bonded, we do not add an IB device for PF1. */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -361,7 +361,6 @@ struct mlx5_reg_host_endianness {
|
||||||
u8 rsvd[15];
|
u8 rsvd[15];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#define CAP_MASK(pos, size) ((u64)((1 << (size)) - 1) << (pos))
|
#define CAP_MASK(pos, size) ((u64)((1 << (size)) - 1) << (pos))
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -403,7 +403,6 @@ static int reclaim_pages(struct mlx5_core_dev *dev, u32 func_id, int npages,
|
||||||
for (i = 0; i < num_claimed; i++)
|
for (i = 0; i < num_claimed; i++)
|
||||||
free_4k(dev, MLX5_GET64(manage_pages_out, out, pas[i]));
|
free_4k(dev, MLX5_GET64(manage_pages_out, out, pas[i]));
|
||||||
|
|
||||||
|
|
||||||
if (nclaimed)
|
if (nclaimed)
|
||||||
*nclaimed = num_claimed;
|
*nclaimed = num_claimed;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <linux/gfp.h>
|
#include <linux/gfp.h>
|
||||||
#include <linux/export.h>
|
#include <linux/export.h>
|
||||||
#include <linux/mlx5/cmd.h>
|
#include <linux/mlx5/cmd.h>
|
||||||
|
|
Loading…
Reference in a new issue