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: <20240820081737.5460-1-zhujun2@cmss.chinamobile.com>
Date: Tue, 20 Aug 2024 01:17:37 -0700
From: Zhu Jun <zhujun2@...s.chinamobile.com>
To: martin.lau@...ux.dev
Cc: eddyz87@...il.com,
	song@...nel.org,
	yonghong.song@...ux.dev,
	john.fastabend@...il.com,
	kpsingh@...nel.org,
	sdf@...ichev.me,
	haoluo@...gle.com,
	linux-kernel@...r.kernel.org,
	zhujun2@...s.chinamobile.com
Subject: [PATCH] samples/bpf:Remove unused variables

The variable is never referenced in the code, just remove them

Signed-off-by: Zhu Jun <zhujun2@...s.chinamobile.com>
---
 samples/bpf/tcbpf1_kern.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/samples/bpf/tcbpf1_kern.c b/samples/bpf/tcbpf1_kern.c
index e9356130f84e..dc4ba5fe9c73 100644
--- a/samples/bpf/tcbpf1_kern.c
+++ b/samples/bpf/tcbpf1_kern.c
@@ -56,7 +56,6 @@ SEC("classifier")
 int bpf_prog1(struct __sk_buff *skb)
 {
 	__u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol));
-	long *value;
 
 	if (proto == IPPROTO_TCP) {
 		set_ip_tos(skb, 8);
-- 
2.17.1




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ