diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2012-05-15 06:34:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 00:56:58 -0400 |
commit | 162344ed2c80845200845f83e310fa3058bfe001 (patch) | |
tree | 2c6da0a466f9dd63d57fab6cb150d9d4eb9ca01b /drivers/net/ethernet/mellanox/mlx4/cmd.c | |
parent | bc9b35ad41387379e0b1257b3171da0dca73562d (diff) |
net/mlx4: Address build warnings on set but not used variables
Handle the compiler warnings on variables which are set but not used
by removing the relevant variable or casting a return value which is
ignored on purpose to void.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/cmd.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cmd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c index 773c70ea3f62..53b738b8a004 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c | |||
@@ -1254,7 +1254,6 @@ static void mlx4_master_do_cmd(struct mlx4_dev *dev, int slave, u8 cmd, | |||
1254 | struct mlx4_priv *priv = mlx4_priv(dev); | 1254 | struct mlx4_priv *priv = mlx4_priv(dev); |
1255 | struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; | 1255 | struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; |
1256 | u32 reply; | 1256 | u32 reply; |
1257 | u32 slave_status = 0; | ||
1258 | u8 is_going_down = 0; | 1257 | u8 is_going_down = 0; |
1259 | int i; | 1258 | int i; |
1260 | 1259 | ||
@@ -1274,10 +1273,8 @@ static void mlx4_master_do_cmd(struct mlx4_dev *dev, int slave, u8 cmd, | |||
1274 | } | 1273 | } |
1275 | /*check if we are in the middle of FLR process, | 1274 | /*check if we are in the middle of FLR process, |
1276 | if so return "retry" status to the slave*/ | 1275 | if so return "retry" status to the slave*/ |
1277 | if (MLX4_COMM_CMD_FLR == slave_state[slave].last_cmd) { | 1276 | if (MLX4_COMM_CMD_FLR == slave_state[slave].last_cmd) |
1278 | slave_status = MLX4_DELAY_RESET_SLAVE; | ||
1279 | goto inform_slave_state; | 1277 | goto inform_slave_state; |
1280 | } | ||
1281 | 1278 | ||
1282 | /* write the version in the event field */ | 1279 | /* write the version in the event field */ |
1283 | reply |= mlx4_comm_get_version(); | 1280 | reply |= mlx4_comm_get_version(); |