From: Vadim Pasternak <vadimp@nvidia.com>
To: <hdegoede@redhat.com>
Cc: <platform-driver-x86@vger.kernel.org>,
Vadim Pasternak <vadimp@nvidia.com>
Subject: [PATCH platform-next 1/1] Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow")
Date: Sun, 12 Feb 2023 10:33:50 +0200 [thread overview]
Message-ID: <20230212083350.52633-1-vadimp@nvidia.com> (raw)
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
next reply other threads:[~2023-02-12 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 8:33 Vadim Pasternak [this message]
2023-02-13 11:11 ` [PATCH platform-next 1/1] Squash to commit cbf3f15f51c5 ("platform: mellanox: Split logic in init and exit flow") Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230212083350.52633-1-vadimp@nvidia.com \
--to=vadimp@nvidia.com \
--cc=hdegoede@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox