From: Sachin Kamat Date: Thu, 24 Oct 2013 11:53:00 +0000 (+0100) Subject: iio: core: Add misssing braces X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=670c11033dc57c1cf5d9e0056e3c6734e6554d91;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iio: core: Add misssing braces Silences the following checkpatch warning: WARNING: sizeof *iio_attr should be sizeof(*iio_attr) Signed-off-by: Sachin Kamat Signed-off-by: Jonathan Cameron --- 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;