core/socket: shorten socket_fdname()

This commit is contained in:
Yu Watanabe
2017-12-23 19:32:40 +09:00
parent 827d9bf297
commit 845001221d
+1 -4
View File
@@ -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) {