summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/i2c.c
diff options
context:
space:
mode:
authorColin Ian King2018-08-10 09:53:28 +0200
committerDavid S. Miller2018-08-10 19:23:51 +0200
commit29a06a779977d2af8ec783525e3d10cb616a4272 (patch)
treeb3dd91758be33689541784bfb143f89037e3a5f2 /drivers/net/ethernet/mellanox/mlxsw/i2c.c
parentnet: Provide stub for __netif_set_xps_queue if there is no CONFIG_XPS (diff)
downloadkernel-qcow2-linux-29a06a779977d2af8ec783525e3d10cb616a4272.tar.gz
kernel-qcow2-linux-29a06a779977d2af8ec783525e3d10cb616a4272.tar.xz
kernel-qcow2-linux-29a06a779977d2af8ec783525e3d10cb616a4272.zip
mlxsw: remove unused arrays mlxsw_i2c_driver_name and mlxsw_pci_driver_name
Arrays mlxsw_i2c_driver_name and mlxsw_pci_driver_name are defined but never used hence they are redundant and can be removed. Cleans up clang warnings: warning: 'mlxsw_i2c_driver_name' defined but not used warning: 'mlxsw_pci_driver_name' defined but not used Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/i2c.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/i2c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/i2c.c b/drivers/net/ethernet/mellanox/mlxsw/i2c.c
index bd255417751b..798bd5aca384 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/i2c.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/i2c.c
@@ -15,8 +15,6 @@
#include "core.h"
#include "i2c.h"
-static const char mlxsw_i2c_driver_name[] = "mlxsw_i2c";
-
#define MLXSW_I2C_CIR2_BASE 0x72000
#define MLXSW_I2C_CIR_STATUS_OFF 0x18
#define MLXSW_I2C_CIR2_OFF_STATUS (MLXSW_I2C_CIR2_BASE + \