summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-trigger.c
diff options
context:
space:
mode:
authorJoe Simmons-Talbott <joetalbott@gmail.com>2022-07-17 17:34:38 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-07-18 19:29:29 +0200
commitef7ceceeb1fbffff75999ae10f8b7cb4b256a236 (patch)
tree4528fed0bd3778887b842426a1587470afa0e1cb /drivers/iio/industrialio-trigger.c
parentiio: adc: npcm: Add NPCM8XX support (diff)
downloadlinux-ef7ceceeb1fbffff75999ae10f8b7cb4b256a236.tar.xz
linux-ef7ceceeb1fbffff75999ae10f8b7cb4b256a236.zip
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/iio/industrialio-trigger.c')
-rw-r--r--drivers/iio/industrialio-trigger.c4
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;