Commit 0c87b29c authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

mellanox: Change en_print to return void

No caller or macro uses the return value so make it void.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-By: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4fc1a46
...@@ -78,27 +78,24 @@ MLX4_EN_PARM_INT(inline_thold, MAX_INLINE, ...@@ -78,27 +78,24 @@ MLX4_EN_PARM_INT(inline_thold, MAX_INLINE,
#define MAX_PFC_TX 0xff #define MAX_PFC_TX 0xff
#define MAX_PFC_RX 0xff #define MAX_PFC_RX 0xff
int en_print(const char *level, const struct mlx4_en_priv *priv, void en_print(const char *level, const struct mlx4_en_priv *priv,
const char *format, ...) const char *format, ...)
{ {
va_list args; va_list args;
struct va_format vaf; struct va_format vaf;
int i;
va_start(args, format); va_start(args, format);
vaf.fmt = format; vaf.fmt = format;
vaf.va = &args; vaf.va = &args;
if (priv->registered) if (priv->registered)
i = printk("%s%s: %s: %pV", printk("%s%s: %s: %pV",
level, DRV_NAME, priv->dev->name, &vaf); level, DRV_NAME, priv->dev->name, &vaf);
else else
i = printk("%s%s: %s: Port %d: %pV", printk("%s%s: %s: Port %d: %pV",
level, DRV_NAME, dev_name(&priv->mdev->pdev->dev), level, DRV_NAME, dev_name(&priv->mdev->pdev->dev),
priv->port, &vaf); priv->port, &vaf);
va_end(args); va_end(args);
return i;
} }
void mlx4_en_update_loopback_state(struct net_device *dev, void mlx4_en_update_loopback_state(struct net_device *dev,
......
...@@ -842,8 +842,8 @@ extern const struct ethtool_ops mlx4_en_ethtool_ops; ...@@ -842,8 +842,8 @@ extern const struct ethtool_ops mlx4_en_ethtool_ops;
*/ */
__printf(3, 4) __printf(3, 4)
int en_print(const char *level, const struct mlx4_en_priv *priv, void en_print(const char *level, const struct mlx4_en_priv *priv,
const char *format, ...); const char *format, ...);
#define en_dbg(mlevel, priv, format, ...) \ #define en_dbg(mlevel, priv, format, ...) \
do { \ do { \
......
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