Signed-off-by: Barry Song <21cnbao@xxxxxxxxx> --- drivers/staging/iio/Documentation/iio_utils.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 6411bf9..a4555e6 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -64,8 +64,7 @@ inline int find_type_by_name(const char *name, const char *type) + strlen(type) + 1 + numstrlen - + 1 - + IIO_MAX_NAME_LENGTH); + + 1); if (filename == NULL) return -ENOMEM; sprintf(filename, "%s%s%d/name", -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html