summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-24 12:53:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-10-24 14:42:44 +0100
commit670c11033dc57c1cf5d9e0056e3c6734e6554d91 (patch)
tree8317f8a052ff084ba7e3eb9bd61cb5d0182c4193 /drivers/iio
parent3176dd5d3b591b22abe28dc0f3aace089f10ebe7 (diff)
downloadlinux-670c11033dc57c1cf5d9e0056e3c6734e6554d91.tar.bz2
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')
-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;