summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-24 13:53:00 +0200
committerJonathan Cameron <jic23@kernel.org>2013-10-24 15:42:44 +0200
commit670c11033dc57c1cf5d9e0056e3c6734e6554d91 (patch)
tree8317f8a052ff084ba7e3eb9bd61cb5d0182c4193 /drivers/iio/industrialio-core.c
parentiio: core: Use pr_err instead of printk (diff)
downloadlinux-670c11033dc57c1cf5d9e0056e3c6734e6554d91.tar.xz
linux-670c11033dc57c1cf5d9e0056e3c6734e6554d91.zip
iio: core: Add misssing braces
Silences the following checkpatch warning: WARNING: sizeof *iio_attr should be sizeof(*iio_attr) Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index e4780b41ae04..18f72e3d0ed6 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -685,7 +685,7 @@ int __iio_add_chan_devattr(const char *postfix,
int ret;
struct iio_dev_attr *iio_attr, *t;
- iio_attr = kzalloc(sizeof *iio_attr, GFP_KERNEL);
+ iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL);
if (iio_attr == NULL) {
ret = -ENOMEM;
goto error_ret;