summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-message.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-04-28 14:28:49 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2019-04-28 14:28:49 +0200
commit4e361acc062bee3d6d9a41243c3e4e7396343fe6 (patch)
treeb804f19c5b0d3b752f94c49387d71ef457633bbf /src/libsystemd/sd-bus/bus-message.c
parent17e3e37c059aca1db9946675dd3dd9ae1454b0de (diff)
downloadsystemd-4e361acc062bee3d6d9a41243c3e4e7396343fe6.tar.gz
tree-wide: replace explicit NULL checks with their shorter variants
Done by coccinelle/equals-null.cocci
Diffstat (limited to 'src/libsystemd/sd-bus/bus-message.c')
-rw-r--r--src/libsystemd/sd-bus/bus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
index 427d42f296..d857ca121f 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -26,7 +26,7 @@ static int message_append_basic(sd_bus_message *m, char type, const void *p, con
static void *adjust_pointer(const void *p, void *old_base, size_t sz, void *new_base) {
- if (p == NULL)
+ if (!p)
return NULL;
if (old_base == new_base)