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/journal-remote | |
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/journal-remote')
-rw-r--r-- | src/journal-remote/journal-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 04c66a29ce..35efe7002b 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -181,7 +181,7 @@ static int get_source_for_fd(RemoteServer *s, return log_warning_errno(r, "Failed to get writer for source %s: %m", name); - if (s->sources[fd] == NULL) { + if (!s->sources[fd]) { s->sources[fd] = source_new(fd, false, name, writer); if (!s->sources[fd]) { writer_unref(writer); |