commit | ee8ec048e091bfe36cc463e7a30eefbe5fef3e75 | [log] [tgz] |
---|---|---|
author | Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> | Fri Nov 05 12:05:00 2021 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat Nov 27 16:33:45 2021 +0000 |
tree | 10cf23f596b5670c0379c294851b1dd2cde5d41a | |
parent | ffc7c5172a6d1f7ec468066a7172ce65baf1e3e1 [diff] |
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: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20211105100501.1904-2-andriy.tryshnivskyy@opensynergy.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>