tree-wide: replace explicit NULL checks with their shorter variants

Done by coccinelle/equals-null.cocci
This commit is contained in:
Frantisek Sumsal
2019-04-28 14:28:49 +02:00
parent 17e3e37c05
commit 4e361acc06
15 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -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);