Skip to content
Commit ee8ec048 authored by Andriy Tryshnivskyy's avatar Andriy Tryshnivskyy Committed by Jonathan Cameron
Browse files

iio: test: Add check against NULL for buffer in tests.



Add KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf) for every test.
Also use ARRAY_SIZE(values) where it is possible.

Signed-off-by: default avatarAndriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211105100501.1904-2-andriy.tryshnivskyy@opensynergy.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ffc7c517
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment