kunit: drop unused kunit* field in kunit_assert
authorDaniel Latypov <dlatypov@google.com>
Thu, 13 Jan 2022 16:59:28 +0000 (08:59 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 25 Jan 2022 19:49:46 +0000 (12:49 -0700)
commita91e9ade402c48ee35cd1e4b671e3938db798d17
tree21a42096c0bb8c620fb9cef2215e3cf8db012c45
parent4fdacef8ac5a5382eeb1bc6fc2632d71a09d52cd
kunit: drop unused kunit* field in kunit_assert

The `struct kunit* test` field in kunit_assert is unused.
Note: string_stream needs it, but it has its own `test` field. I assume
`test` in `kunit_assert` predates this and was leftover after some
refactoring.

This patch removes the field and cleans up the macros to avoid
needlessly passing around `test`.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/assert.h
include/kunit/test.h