]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mempool: rename local variable to match current coding style
authorLennart Poettering <lennart@poettering.net>
Tue, 14 Feb 2023 12:38:18 +0000 (13:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2023 14:01:36 +0000 (15:01 +0100)
src/basic/mempool.c

index 92d8822bd94745d274aef145e1d7dd0c50e04239..29f72a81712dee749c1b9aa9b67711d26a51a1fa 100644 (file)
@@ -19,15 +19,16 @@ void* mempool_alloc_tile(struct mempool *mp) {
         /* When a tile is released we add it to the list and simply
          * place the next pointer at its offset 0. */
 
+        assert(mp);
         assert(mp->tile_size >= sizeof(void*));
         assert(mp->at_least > 0);
 
         if (mp->freelist) {
-                void *r;
+                void *t;
 
-                r = mp->freelist;
-                mp->freelist = * (void**) mp->freelist;
-                return r;
+                t = mp->freelist;
+                mp->freelist = *(void**) mp->freelist;
+                return t;
         }
 
         if (_unlikely_(!mp->first_pool) ||