lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241206024127.2732-1-liujing@cmss.chinamobile.com>
Date: Fri,  6 Dec 2024 10:41:27 +0800
From: liujing <liujing@...s.chinamobile.com>
To: gregkh@...uxfoundation.org,
	thorsten.blum@...lux.com
Cc: linux-kernel@...r.kernel.org,
	liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] sample/acrn: Remove redundant assignment to itself

Delete the self-redundancy assignment for sig, argc, and argv.

Signed-off-by: liujing <liujing@...s.chinamobile.com>

diff --git a/samples/acrn/vm-sample.c b/samples/acrn/vm-sample.c
index c61e0f91456e..f6d62d1659ef 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) {
-- 
2.27.0




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ