From: Michael Hennerich Date: Thu, 24 Feb 2011 15:34:52 +0000 (+0100) Subject: IIO: Documentation: iio_utils: style consistency fix X-Git-Tag: v2.6.39-rc1~469^2~402 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bf99c70cee1d9347145ec0d96ba39764e2193bc;p=platform%2Fkernel%2Flinux-3.10.git IIO: Documentation: iio_utils: style consistency fix No functional changes Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 3cf01a5..4b023aa 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -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;