[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/17] Always initialize A and X variables in BPF code
From: |
Guillem Jover |
Subject: |
[PATCH 16/17] Always initialize A and X variables in BPF code |
Date: |
Thu, 25 Aug 2011 15:22:39 +0200 |
* device/net_io.c (bpf_do_filter): Remove lint conditional.
---
device/net_io.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/device/net_io.c b/device/net_io.c
index 1db9bca..8446395 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -1655,10 +1655,9 @@ bpf_do_filter(infp, p, wirelen, header, hlen,
hash_headpp, entpp)
buflen = NET_RCV_MAX;
*entpp = 0; /* default */
-#ifdef lint
A = 0;
X = 0;
-#endif
+
for (; pc < pc_end; ++pc) {
switch (pc->code) {
--
1.7.5.4
- [PATCH v2 15/17] Move cdrom_sleep() definition to its original source file, (continued)
- [PATCH 11/17] Remove unused variables, Guillem Jover, 2011/08/25
- [PATCH 10/17] Remove ident tags producing preprocessor warnings, Guillem Jover, 2011/08/25
- [PATCH 09/17] Add header for printf prototype, Guillem Jover, 2011/08/25
- [PATCH 13/17] Match signedness of char pointer comparisons and assignments, Guillem Jover, 2011/08/25
- [PATCH 16/17] Always initialize A and X variables in BPF code,
Guillem Jover <=
- Re: Build improvements and warning fixes, Samuel Thibault, 2011/08/26