]> git.ipfire.org Git - thirdparty/systemd.git/commit
Bug #944: Deletion of unnecessary checks before a few calls of systemd functions 976/head
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Aug 2015 08:45:30 +0000 (10:45 +0200)
committerMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Aug 2015 08:45:30 +0000 (10:45 +0200)
commit3e044c492e3ebe64f4e3175c94f9db8a62557b82
tree162e76658ef1e646546eca079d08e0143c4747b6
parentdc4ebc0787a299f064553e6d28a7f35574ce1c2a
Bug #944: Deletion of unnecessary checks before a few calls of systemd functions

The following functions return immediately if a null pointer was passed.
* calendar_spec_free
* link_address_free
* manager_free
* sd_bus_unref
* sd_journal_close
* udev_monitor_unref
* udev_unref

It is therefore not needed that a function caller repeats a corresponding check.

This issue was fixed by using the software Coccinelle 1.0.1.
src/core/dbus-timer.c
src/core/timer.c
src/journal-remote/journal-gatewayd.c
src/journal/journald-server.c
src/libsystemd/sd-bus/test-bus-chat.c
src/login/logind.c
src/machine/machined.c
src/resolve/resolved-manager.c
src/update-utmp/update-utmp.c