ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
8d419f
From 965a99f34a185bb3b3aa5ac0e9e5d5eb05d0fac0 Mon Sep 17 00:00:00 2001
8d419f
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
8d419f
Date: Mon, 9 May 2022 15:11:20 +0200
8d419f
Subject: [PATCH] basic/alloc-util: remove unnecessary parens
8d419f
8d419f
Those symbols are not macros anymore, so we can drop parens.
8d419f
8d419f
(cherry picked from commit 96d651a22bf62e63080e489cb45e82bead11aa5d)
8d419f
Related: #2087652
8d419f
---
8d419f
 src/basic/alloc-util.h | 4 ++--
8d419f
 1 file changed, 2 insertions(+), 2 deletions(-)
8d419f
8d419f
diff --git a/src/basic/alloc-util.h b/src/basic/alloc-util.h
8d419f
index 65d5175619..f57bcbdbcd 100644
8d419f
--- a/src/basic/alloc-util.h
8d419f
+++ b/src/basic/alloc-util.h
8d419f
@@ -54,8 +54,8 @@ typedef void (*free_func_t)(void *p);
8d419f
                 typeof(a)* _a = &(a);           \
8d419f
                 typeof(b)* _b = &(b);           \
8d419f
                 free(*_a);                      \
8d419f
-                (*_a) = (*_b);                  \
8d419f
-                (*_b) = NULL;                   \
8d419f
+                *_a = *_b;                      \
8d419f
+                *_b = NULL;                     \
8d419f
                 0;                              \
8d419f
         })
8d419f