diff options
author | Joe Simmons-Talbott <joetalbott@gmail.com> | 2022-07-17 18:34:38 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-07-18 20:29:29 +0300 |
commit | ef7ceceeb1fbffff75999ae10f8b7cb4b256a236 (patch) | |
tree | 4528fed0bd3778887b842426a1587470afa0e1cb /drivers | |
parent | 3ccb25240012ea0e975e24a199bb1ee9643be743 (diff) |
iio: Use parens with sizeof
Prefer 'sizeof(var)' over 'sizeof var' as reported by checkpatch.pl.
Signed-off-by: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220717153438.10800-1-joetalbott@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/industrialio-trigger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c index efc01584b3f9..3e1b1fbc66d0 100644 --- a/drivers/iio/industrialio-trigger.c +++ b/drivers/iio/industrialio-trigger.c @@ -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; |