From: Caleb Sander Mateos Date: Tue, 16 Jul 2024 16:13:01 +0000 (-0600) Subject: util: remove redundant cast in argconfig_parse_type() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=37853a94825a59bc49be2d3f858657eb300b55cc;p=users%2Fsagi%2Fnvme-cli.git util: remove redundant cast in argconfig_parse_type() s->default_value is already a void *, so there is no need to cast it to a char * and back. Signed-off-by: Caleb Sander Mateos --- diff --git a/util/argconfig.c b/util/argconfig.c index 87487eae..4bb0ea92 100644 --- a/util/argconfig.c +++ b/util/argconfig.c @@ -145,7 +145,7 @@ static int argconfig_error(char *type, const char *opt, const char *arg) static int argconfig_parse_type(struct argconfig_commandline_options *s, struct option *option, int index) { - void *value = (void *)(char *)s->default_value; + void *value = s->default_value; char *endptr; int ret = 0;