iio: core: Add misssing braces
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 24 Oct 2013 11:53:00 +0000 (12:53 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 24 Oct 2013 13:42:44 +0000 (14:42 +0100)
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>
drivers/iio/industrialio-core.c

index e4780b4..18f72e3 100644 (file)
@@ -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;