mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: hexingwei001@208suo.com
To: gregkh@linuxfoundation.org, rafael@kernel.org,
	wangdeming@inspur.com, andriy.shevchenko@linux.intel.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] sample/acrn: fix uninitialized_var.cocci warning
Date: Wed, 14 Jun 2023 16:13:35 +0800	[thread overview]
Message-ID: <90b3c525ca35cfc28c9445036c8327c2@208suo.com> (raw)
In-Reply-To: <20230614080847.51136-1-panzhiai@cdjrlc.com>

Fix following coccicheck warning:

samples/acrn/vm-sample.c:53:6-7: WARNING this kind of initialization is 
deprecated.
samples/acrn/vm-sample.c:54:6-7: WARNING this kind of initialization is 
deprecated.
samples/acrn/vm-sample.c:37:5-6: WARNING this kind of initialization is 
deprecated.

Signed-off-by: Xingwei He <hexingwei001@208suo.com>
---
  samples/acrn/vm-sample.c | 3 ---
  1 file changed, 3 deletions(-)

diff --git a/samples/acrn/vm-sample.c b/samples/acrn/vm-sample.c
index 704402c64ea3..e60b2d0b7e20 100644
--- a/samples/acrn/vm-sample.c
+++ b/samples/acrn/vm-sample.c
@@ -34,7 +34,6 @@ int is_running = 1;

  void vm_exit(int sig)
  {
-    sig = sig;

      is_running = 0;
      ioctl(hsm_fd, ACRN_IOCTL_PAUSE_VM, vmid);
@@ -50,8 +49,6 @@ int main(int argc, char **argv)
      struct acrn_io_request *io_req;
      struct acrn_ioreq_notify __attribute__((aligned(8))) notify;

-    argc = argc;
-    argv = argv;

      ret = posix_memalign(&guest_memory, 4096, GUEST_MEMORY_SIZE);
      if (ret < 0) {

       reply	other threads:[~2023-06-14  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230614080847.51136-1-panzhiai@cdjrlc.com>
2023-06-14  8:13 ` hexingwei001 [this message]
2023-06-15 11:31   ` Greg KH

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=90b3c525ca35cfc28c9445036c8327c2@208suo.com \
    --to=hexingwei001@208suo.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=wangdeming@inspur.com \
    /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

all inboxes | Powered by JetHome®