Commit 295cc426 authored by Joe Simmons-Talbott's avatar Joe Simmons-Talbott Committed by Jonathan Cameron
Browse files

iio: Be consistent with allocation result tests.



Make both allocation result tests use the same format

    if (!ptr)

Signed-off-by: default avatarJoe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220718020348.32047-1-joetalbott@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ef7cecee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -365,7 +365,7 @@ struct iio_poll_func
	struct iio_poll_func *pf;

	pf = kmalloc(sizeof(*pf), GFP_KERNEL);
	if (pf == NULL)
	if (!pf)
		return NULL;
	va_start(vargs, fmt);
	pf->name = kvasprintf(GFP_KERNEL, fmt, vargs);