diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2015-02-03 10:57:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 19:17:45 -0500 |
commit | 6af0a52f65840bdfae5e24df51cbe9965a4146f6 (patch) | |
tree | bf060b071f6eda02708e9120ef9035285b5315be /drivers/net/ethernet | |
parent | b332068ce4261b37d05f438fbc487e357fffa108 (diff) |
net/mlx4: mlx4_config_dev_retrieval() - Initialize struct config_dev before using
Add Initialization to struct config_dev before filling and using it.
Fix to warning:
warning: config_dev.rx_checksum_val may be used uninitialized in this function
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.c b/drivers/net/ethernet/mellanox/mlx4/fw.c index 4b08a393ebcb..5a21e5dc94cb 100644 --- a/drivers/net/ethernet/mellanox/mlx4/fw.c +++ b/drivers/net/ethernet/mellanox/mlx4/fw.c | |||
@@ -2169,7 +2169,7 @@ static const u8 config_dev_csum_flags[] = { | |||
2169 | int mlx4_config_dev_retrieval(struct mlx4_dev *dev, | 2169 | int mlx4_config_dev_retrieval(struct mlx4_dev *dev, |
2170 | struct mlx4_config_dev_params *params) | 2170 | struct mlx4_config_dev_params *params) |
2171 | { | 2171 | { |
2172 | struct mlx4_config_dev config_dev; | 2172 | struct mlx4_config_dev config_dev = {0}; |
2173 | int err; | 2173 | int err; |
2174 | u8 csum_mask; | 2174 | u8 csum_mask; |
2175 | 2175 | ||