]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: update NULL vs IS_ERR() tests
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2022 09:37:25 +0000 (12:37 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 18 Oct 2022 21:08:42 +0000 (15:08 -0600)
commita6eb34a200e804720a69482424156e49c611b6b6
treefcf7314223150ba06640e17526e1321cab3f7525
parentf9cd8e124bf669aeea2383cd3379e3e16e75ceea
kunit: update NULL vs IS_ERR() tests

The alloc_string_stream() functions were changed from returning NULL on
error to returning error pointers so these caller needs to be updated
as well.

Fixes: 4b70185d3e8a ("kunit: string-stream: Simplify resource use")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/string-stream.c
lib/kunit/test.c