From: Bart Van Assche Date: Tue, 3 Apr 2018 20:04:25 +0000 (-0700) Subject: parse.h: Remove a superfluous cast X-Git-Tag: fio-3.6~18^2~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=69349699d5a6e244fd9e74665ff2962cbca3d329 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 --- 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)