From: Michael Hennerich Date: Thu, 24 Feb 2011 15:34:52 +0000 (+0100) Subject: IIO: Documentation: iio_utils: style consistency fix X-Git-Tag: MMI-PSA29.97-13-9~20521^2~402 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2bf99c70cee1d9347145ec0d96ba39764e2193bc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 3cf01a532b55..4b023aa14198 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;