]> xenbits.xensource.com Git - libvirt.git/commit
lib: Drop needless ret variables
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2020 09:14:16 +0000 (11:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2020 11:08:53 +0000 (13:08 +0200)
commitfe65e9c8b50c9029cba0e8c386162d293cd443d2
tree49cbe52136bc56d425115990ea7235e091af9603
parentce87e7f2a66d4dea62512232be229a1bed7963b0
lib: Drop needless ret variables

There are few places where a return variable is introduced (ret
or retval), but then is never changed and is then passed to
return. Well, we can return the value that the variable is
initialized to directly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/locking/lock_daemon.c
src/logging/log_daemon.c
src/storage/storage_backend_mpath.c
tools/virt-host-validate-bhyve.c