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-network/network-internal.c | |
parent | 17e3e37c059aca1db9946675dd3dd9ae1454b0de (diff) | |
download | systemd-4e361acc062bee3d6d9a41243c3e4e7396343fe6.tar.gz systemd-4e361acc062bee3d6d9a41243c3e4e7396343fe6.tar.bz2 systemd-4e361acc062bee3d6d9a41243c3e4e7396343fe6.zip |
tree-wide: replace explicit NULL checks with their shorter variants
Done by coccinelle/equals-null.cocci
Diffstat (limited to 'src/libsystemd-network/network-internal.c')
-rw-r--r-- | src/libsystemd-network/network-internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index 2154cf7eac..a112b9f70f 100644 --- a/src/libsystemd-network/network-internal.c +++ b/src/libsystemd-network/network-internal.c @@ -612,7 +612,7 @@ int serialize_dhcp_option(FILE *f, const char *key, const void *data, size_t siz assert(data); hex_buf = hexmem(data, size); - if (hex_buf == NULL) + if (!hex_buf) return -ENOMEM; fprintf(f, "%s=%s\n", key, hex_buf); |