[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <90b3c525ca35cfc28c9445036c8327c2@208suo.com>
Date: Wed, 14 Jun 2023 16:13:35 +0800
From: hexingwei001@...suo.com
To: gregkh@...uxfoundation.org, rafael@...nel.org,
wangdeming@...pur.com, andriy.shevchenko@...ux.intel.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] sample/acrn: fix uninitialized_var.cocci warning
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@...suo.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) {
Powered by blists - more mailing lists