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 e4780b41ae04b5708a5e5d9bc93122ed5faa455e..18f72e3d0ed6e6c8e9bb73ec8616124a2422aed4 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;