Skip to content

Commit

Permalink
IIO: Documentation: iio_utils: style consistency fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Feb 28, 2011
1 parent cb771cb commit 2bf99c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/Documentation/iio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bf99c7

Please sign in to comment.