projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd85fbc
)
net/mlx4_core: Fix uninitialized variable compilation warning
author
Tariq Toukan
<tariqt@mellanox.com>
Thu, 15 Nov 2018 16:05:14 +0000
(18:05 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 16 Nov 2018 00:09:31 +0000
(16:09 -0800)
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>
drivers/net/ethernet/mellanox/mlx4/alloc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/alloc.c
b/drivers/net/ethernet/mellanox/mlx4/alloc.c
index deef5a998985a9f8398d693b8bd219a5fc083313..9af34e03892c19e780149a3a8405d936fe417d45 100644
(file)
--- 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)
static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count,
int align, u32 skip_mask, u32 *puid)
{
- u32 uid;
+ u32 uid
= 0
;
u32 res;
struct mlx4_zone_allocator *zone_alloc = zone->allocator;
struct mlx4_zone_entry *curr_node;