]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: modernize code a bit
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jan 2019 17:30:58 +0000 (18:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Jan 2019 21:14:06 +0000 (22:14 +0100)
commit2cfb1978907caf21348513c10d6bd6ee45d9b5cf
tree2485829992a2c3bb4f53aee6ea4883cc6f66f366
parent82d9ac23fd5ab2befe2a95187640a8d38799dd64
sd-device: modernize code a bit

Empty line between setting the output parameter and return is removed. I like
to think about both steps as part of returning from the function, and there's
no need to separate them.

Similarly, if we need to unset a pointer after successfully passing ownership,
use TAKE_PTR and do it immediately after the ownership change, without an empty
line inbetween.
src/libsystemd/sd-device/sd-device.c