remove unused variable (return immediately)

Fri, 12 Aug 2022 16:47:11 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 12 Aug 2022 16:47:11 +0200
changeset 573
3f3a0d19db58
parent 572
f0f99dd06d9f
child 574
d566bd3e6af8

remove unused variable (return immediately)

src/hash_map.c file | annotate | diff | comparison | revisions
     1.1 --- a/src/hash_map.c	Mon Aug 08 17:12:00 2022 +0200
     1.2 +++ b/src/hash_map.c	Fri Aug 12 16:47:11 2022 +0200
     1.3 @@ -201,8 +201,7 @@
     1.4  
     1.5  static void *cx_hash_map_iter_current_entry(CxIterator const *iter) {
     1.6      // struct has to have a compatible signature
     1.7 -    struct cx_map_entry_s *entry = (struct cx_map_entry_s *) &(iter->kv_data);
     1.8 -    return entry;
     1.9 +    return (struct cx_map_entry_s *) &(iter->kv_data);
    1.10  }
    1.11  
    1.12  static void *cx_hash_map_iter_current_key(CxIterator const *iter) {

mercurial