Re: [PATCH 3/6] kunit: drop unused kunit* field in kunit_assert
From: Brendan Higgins
Date: Mon Jan 10 2022 - 17:24:21 EST
On Fri, Jan 7, 2022 at 8:23 PM Daniel Latypov <dlatypov@xxxxxxxxxx> wrote:
>
> The `struct kunit* test` field in kunit_assert is unused.
> Note: we have access to `test` where we need it via the string_stream
> object. 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@xxxxxxxxxx>
Looks good. Thanks!
Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>