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

iio: Use parens with sizeof



Prefer 'sizeof(var)' over 'sizeof var' as reported by checkpatch.pl.

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


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 3ccb2524
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ struct iio_poll_func
	va_list vargs;
	struct iio_poll_func *pf;

	pf = kmalloc(sizeof *pf, GFP_KERNEL);
	pf = kmalloc(sizeof(*pf), GFP_KERNEL);
	if (pf == NULL)
		return NULL;
	va_start(vargs, fmt);
@@ -553,7 +553,7 @@ struct iio_trigger *viio_trigger_alloc(struct device *parent,
	struct iio_trigger *trig;
	int i;

	trig = kzalloc(sizeof *trig, GFP_KERNEL);
	trig = kzalloc(sizeof(*trig), GFP_KERNEL);
	if (!trig)
		return NULL;