summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-04-03 13:04:25 -0700
committerBart Van Assche <bart.vanassche@wdc.com>2018-04-04 13:51:39 -0700
commit69349699d5a6e244fd9e74665ff2962cbca3d329 (patch)
tree5c72ffa79370907edd89eb43e31e11ab3536c39a
parent5c5c33c1b0df088187a6d4fac5459df5e029763a (diff)
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 <bart.vanassche@wdc.com>
-rw-r--r--parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.h b/parse.h
index d05236b..f919291 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)