aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kunit/string-stream.h
diff options
context:
space:
mode:
authorRichard Fitzgerald <[email protected]>2023-08-28 10:41:06 +0000
committerShuah Khan <[email protected]>2023-09-18 16:45:30 +0000
commit7b4481cbe7e6bde275aa5e5f2aaa21455915e07c (patch)
tree81b666d0871de9469ac1879f2de04343e8ccf573 /lib/kunit/string-stream.h
parentkunit: string-stream-test: Add cases for string_stream newline appending (diff)
downloadkernel-7b4481cbe7e6bde275aa5e5f2aaa21455915e07c.tar.gz
kernel-7b4481cbe7e6bde275aa5e5f2aaa21455915e07c.zip
kunit: Don't use a managed alloc in is_literal()
There is no need to use a test-managed alloc in is_literal(). The function frees the temporary buffer before returning. This removes the only use of the test and gfp members of struct string_stream outside of the string_stream implementation. Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/kunit/string-stream.h')
0 files changed, 0 insertions, 0 deletions