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
--- a/src/hash_map.c	Mon Aug 08 17:12:00 2022 +0200
+++ b/src/hash_map.c	Fri Aug 12 16:47:11 2022 +0200
@@ -201,8 +201,7 @@
 
 static void *cx_hash_map_iter_current_entry(CxIterator const *iter) {
     // struct has to have a compatible signature
-    struct cx_map_entry_s *entry = (struct cx_map_entry_s *) &(iter->kv_data);
-    return entry;
+    return (struct cx_map_entry_s *) &(iter->kv_data);
 }
 
 static void *cx_hash_map_iter_current_key(CxIterator const *iter) {

mercurial