diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-04-28 14:28:49 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-04-28 14:28:49 +0200 |
commit | 4e361acc062bee3d6d9a41243c3e4e7396343fe6 (patch) | |
tree | b804f19c5b0d3b752f94c49387d71ef457633bbf /src/libsystemd/sd-bus/bus-message.c | |
parent | 17e3e37c059aca1db9946675dd3dd9ae1454b0de (diff) | |
download | systemd-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.c | 2 |
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) |