iio: Be consistent with allocation result tests.
authorJoe Simmons-Talbott <joetalbott@gmail.com>
Mon, 18 Jul 2022 02:03:48 +0000 (22:03 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 18 Jul 2022 17:29:30 +0000 (18:29 +0100)
commit295cc4268bb946a84f7681a9f032ade09a4087f8
treec0d6c1f91ee21205a0a852fe67c5fa1064077e93
parentef7ceceeb1fbffff75999ae10f8b7cb4b256a236
iio: Be consistent with allocation result tests.

Make both allocation result tests use the same format

    if (!ptr)

Signed-off-by: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220718020348.32047-1-joetalbott@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-trigger.c