Skip to content

Commit 23f50b5

Browse files
tammelaanakryiko
authored andcommitted
bpf: selftests: Remove unused 'nospace_err' in tests for batched ops in array maps
This seems to be a reminiscent from the hashmap tests. Signed-off-by: Pedro Tammela <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d94436a commit 23f50b5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tools/testing/selftests/bpf/map_tests/array_map_batch_ops.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ void test_array_map_batch_ops(void)
5555
int map_fd, *keys, *values, *visited;
5656
__u32 count, total, total_success;
5757
const __u32 max_entries = 10;
58-
bool nospace_err;
5958
__u64 batch = 0;
6059
int err, step;
6160
DECLARE_LIBBPF_OPTS(bpf_map_batch_opts, opts,
@@ -90,7 +89,6 @@ void test_array_map_batch_ops(void)
9089
* elements each.
9190
*/
9291
count = step;
93-
nospace_err = false;
9492
while (true) {
9593
err = bpf_map_lookup_batch(map_fd,
9694
total ? &batch : NULL, &batch,
@@ -107,9 +105,6 @@ void test_array_map_batch_ops(void)
107105

108106
}
109107

110-
if (nospace_err == true)
111-
continue;
112-
113108
CHECK(total != max_entries, "lookup with steps",
114109
"total = %u, max_entries = %u\n", total, max_entries);
115110

0 commit comments

Comments
 (0)