Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow")
PATCH 1/1 Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow")
Squash to branch review-hans.
Fix robot warning: drivers/platform/x86/mlx-platform.c:6121:6:
warning: variable 'i' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized].
drivers/platform/x86/mlx-platform.c:6062:7: note: initialize the variable 'i' to silence this warning
int i, err; ^ = 0
--- drivers/platform/x86/mlx-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/mlx-platform.c +1 -1
@@ -6083,7 +6083,7 @@ static void mlxplat_post_exit(void)static int mlxplat_post_init (struct mlxplat_priv *priv) { -int i, err; +int i =0 , err;/* Add hotplug driver */ if (mlxplat_hotplug) {
Signature · 1 line
2.20.1
Hi,
Quoted 6 lines · Vadim Pasternak
Squash to branch review-hans.
Fix robot warning:
drivers/platform/x86/mlx-platform.c:6121:6:
warning: variable 'i' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized].
Quoted 8 lines
drivers/platform/x86/mlx-platform.c:6062:7: note: initialize the variable 'i' to silence this warningint i, err; ^ = 0Signed-off-by Vadim Pasternak <[email protected]>Reported-by kernel test robot <[email protected]>
Thank you.
Squashed into the original commit as requested and pushed to review-hans + for-next.
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/mlx-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/mlx-platform.c +1
-1@@ -6083,7 +6083,7 @@ static void mlxplat_post_exit(void)static int mlxplat_post_init (struct mlxplat_priv *priv) { -int i, err; +int i =0 , err;/* Add hotplug driver */ if (mlxplat_hotplug) {