X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH platform-next 1/1] Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow")
@ 2023-02-12  8:33 Vadim Pasternak
  2023-02-13 11:11 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Vadim Pasternak @ 2023-02-12  8:33 UTC (permalink / raw)
  To: hdegoede; +Cc: platform-driver-x86, 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].

drivers/platform/x86/mlx-platform.c:6062:7: note: initialize the
variable 'i' to silence this warning
	int i, err;
		^
		= 0

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reported-by: kernel test robot <lkp@intel.com>
---
 drivers/platform/x86/mlx-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index 1bf9ef6e8c97..7b6779cdb134 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -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) {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-13 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-12  8:33 [PATCH platform-next 1/1] Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow") Vadim Pasternak
2023-02-13 11:11 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox