core: optimize unit_write_drop_in a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Apr 2016 16:13:02 +0000 (18:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:33 +0000 (13:43 +0200)
commit815b09d39b74a9ece31b7d7ef45f8f00784b8d8b
tree0265d12c2b50c86ff59c71d90d637421153cc3f8
parente20b2a867ac5ac7ff6d43898fb83bc78f730909e
core: optimize unit_write_drop_in a bit

There's no point in first determining the drop-in file name path, then
forgetting it again, and then determining it again. Instead, just generated it
once, and then write to ti directly.
src/core/unit.c