mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 21:45:22 +00:00
857df2fe50
In a few places we declare a variable (which is optionally followed by a code not touching it) then set the variable to a value and return the variable immediately. It's obvious that the variable is needless and the value can be returned directly instead. This patch was generated using this semantic patch: @@ type T; identifier ret; expression E; @@ - T ret; ... when != ret when strict - ret = E; - return ret; + return E; After that I fixed couple of formatting issues because coccinelle formatted some lines differently than our coding style. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> |
||
---|---|---|
.. | ||
domain_lock.c | ||
domain_lock.h | ||
libvirt_lockd.aug | ||
libvirt_sanlock.aug | ||
lock_daemon_config.c | ||
lock_daemon_config.h | ||
lock_daemon_dispatch.c | ||
lock_daemon_dispatch.h | ||
lock_daemon.c | ||
lock_daemon.h | ||
lock_driver_lockd.c | ||
lock_driver_lockd.h | ||
lock_driver_nop.c | ||
lock_driver_nop.h | ||
lock_driver_sanlock.c | ||
lock_driver.h | ||
lock_manager.c | ||
lock_manager.h | ||
lock_protocol.x | ||
lockd.conf | ||
meson.build | ||
sanlock_helper.c | ||
sanlock.conf | ||
test_libvirt_lockd.aug.in | ||
test_libvirt_sanlock.aug.in | ||
test_virtlockd.aug.in | ||
virtlockd-admin.socket.in | ||
virtlockd.aug | ||
virtlockd.conf | ||
virtlockd.init.in | ||
virtlockd.service.in | ||
virtlockd.socket.in | ||
virtlockd.sysconf |