]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: drop assignments to r when we only need errno
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Sep 2020 10:02:48 +0000 (12:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Sep 2020 14:36:43 +0000 (16:36 +0200)
commitfe79f107efc497b4e7a6b40e5b8a04a490b88d78
tree50e9caff433727e0896484c1793fa6acc5fbcfcb
parent960b585ba116cc09055d3f5540a0c73e088d37e4
tree-wide: drop assignments to r when we only need errno

If the whole call is simple and we don't need to look at the return value
apart from the conditional, let's use a form without assignment of the return
value. When the function call is more complicated, it still makes sense to
use a temporary variable.
src/core/socket.c
src/shared/udev-util.c
src/udev/udev-builtin-keyboard.c