From 69349699d5a6e244fd9e74665ff2962cbca3d329 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 3 Apr 2018 13:04:25 -0700 Subject: [PATCH] parse.h: Remove a superfluous cast Adding an offset to a void pointer has the same effect as adding an offset to a char pointer. Hence removing the (char *) cast from td_var() does not change its behavior. Signed-off-by: Bart Van Assche --- parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.h b/parse.h index d05236b0..f9192918 100644 --- a/parse.h +++ b/parse.h @@ -117,7 +117,7 @@ static inline void *td_var(void *to, struct fio_option *o, unsigned int offset) else ret = to; - return (char *) ret + offset; + return ret + offset; } static inline int parse_is_percent(unsigned long long val) -- 2.25.1