From 845001221d6bf2e4aff3a923376e845b8dcca9ec Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 19 Dec 2017 20:12:01 +0900 Subject: [PATCH] core/socket: shorten socket_fdname() --- src/core/socket.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/socket.c b/src/core/socket.c index eb1c0bfa32..d2c469433d 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -3250,10 +3250,7 @@ char *socket_fdname(Socket *s) { * didn't specify anything specifically, use the socket unit's * name as fallback. */ - if (s->fdname) - return s->fdname; - - return UNIT(s)->id; + return s->fdname ?: UNIT(s)->id; } static int socket_control_pid(Unit *u) {