diff options
Diffstat (limited to 'tools/iio/iio_utils.c')
-rw-r--r-- | tools/iio/iio_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iio/iio_utils.c b/tools/iio/iio_utils.c index 4a7e4801cebf..e177f4022d40 100644 --- a/tools/iio/iio_utils.c +++ b/tools/iio/iio_utils.c | |||
@@ -39,7 +39,7 @@ int iioutils_break_up_name(const char *full_name, char **generic_name) | |||
39 | char *working, *prefix = ""; | 39 | char *working, *prefix = ""; |
40 | int i, ret; | 40 | int i, ret; |
41 | 41 | ||
42 | for (i = 0; i < sizeof(iio_direction) / sizeof(iio_direction[0]); i++) | 42 | for (i = 0; i < ARRAY_SIZE(iio_direction); i++) |
43 | if (!strncmp(full_name, iio_direction[i], | 43 | if (!strncmp(full_name, iio_direction[i], |
44 | strlen(iio_direction[i]))) { | 44 | strlen(iio_direction[i]))) { |
45 | prefix = iio_direction[i]; | 45 | prefix = iio_direction[i]; |