IIO: Documentation: iio_utils: style consistency fix
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 24 Feb 2011 15:34:52 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Feb 2011 22:40:23 +0000 (14:40 -0800)
No functional changes

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Documentation/iio_utils.h

index 3cf01a532b555ecb8171dc3e2863f58ff0f54bdf..4b023aa141984153d143018a76b767de0dcc6267 100644 (file)
@@ -374,7 +374,7 @@ inline int build_channel_array(const char *device_dir,
                }
        }
        /* reorder so that the array is in index order*/
-       current = malloc(sizeof(**ci_array)**counter);
+       current = malloc(sizeof(**ci_array)*(*counter));
        if (current == NULL) {
                ret = -ENOMEM;
                goto error_cleanup_array;