From 1575e15fee19390fa7d73bbdededf37587701e7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Jul 2023 11:49:25 +0200 Subject: Style fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libbus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libbus.c b/libbus.c index b691940..85fbdb6 100644 --- a/libbus.c +++ b/libbus.c @@ -669,10 +669,8 @@ bus_open(bus_t *restrict bus, const char *restrict file, int flags) bus->message = NULL; f = fopen(file, "r"); - - if (f == NULL) { + if (!f) goto fail; - } t(getline(&line, &len, f)); t(bus->key_sem = (key_t)atoll(line)); -- cgit v1.2.3-70-g09d2