summaryrefslogtreecommitdiff
path: root/lib/kunit/string-stream.h
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2022-07-22 20:15:31 +0300
committerShuah Khan <skhan@linuxfoundation.org>2022-10-07 19:15:33 +0300
commit4db4598b5ed8fc26f5fd9312623a9ec5cebbe74a (patch)
treec92601ee1d58647caa2f88d3f7407fee5952f2f9 /lib/kunit/string-stream.h
parent78b1c6584fcedcf2d9687a4455c461859094cf04 (diff)
downloadlinux-4db4598b5ed8fc26f5fd9312623a9ec5cebbe74a.tar.xz
kunit: drop test pointer in string_stream_fragment
We already store the `struct kunit *test` in the string_stream object itself, so we need don't need to store a copy of this pointer in every fragment in the stream. Drop it, getting string_stream_fragment down the bare minimum: a list_head and the `char *` with the actual fragment. Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/kunit/string-stream.h')
-rw-r--r--lib/kunit/string-stream.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/kunit/string-stream.h b/lib/kunit/string-stream.h
index 494dee0f24bd..b669f9a75a94 100644
--- a/lib/kunit/string-stream.h
+++ b/lib/kunit/string-stream.h
@@ -14,7 +14,6 @@
#include <linux/stdarg.h>
struct string_stream_fragment {
- struct kunit *test;
struct list_head node;
char *fragment;
};