diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2018-11-15 11:05:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-15 19:09:31 -0500 |
commit | 3ea7e7ea53c9f6ee41cb69a29c375fe9dd9a56a7 (patch) | |
tree | 753c44b16d2ee37473260d1f34203074f0dae081 | |
parent | bd85fbc2038a1bbe84990b23ff69b6fc81a32b2c (diff) |
net/mlx4_core: Fix uninitialized variable compilation warning
Initialize the uid variable to zero to avoid the compilation warning.
Fixes: 7a89399ffad7 ("net/mlx4: Add mlx4_bitmap zone allocator")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/alloc.c b/drivers/net/ethernet/mellanox/mlx4/alloc.c index deef5a998985..9af34e03892c 100644 --- a/drivers/net/ethernet/mellanox/mlx4/alloc.c +++ b/drivers/net/ethernet/mellanox/mlx4/alloc.c | |||
@@ -337,7 +337,7 @@ void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc) | |||
337 | static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count, | 337 | static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count, |
338 | int align, u32 skip_mask, u32 *puid) | 338 | int align, u32 skip_mask, u32 *puid) |
339 | { | 339 | { |
340 | u32 uid; | 340 | u32 uid = 0; |
341 | u32 res; | 341 | u32 res; |
342 | struct mlx4_zone_allocator *zone_alloc = zone->allocator; | 342 | struct mlx4_zone_allocator *zone_alloc = zone->allocator; |
343 | struct mlx4_zone_entry *curr_node; | 343 | struct mlx4_zone_entry *curr_node; |