]> xenbits.xensource.com Git - libvirt.git/commit
remote: remove unnecessary return value and if branch
authorjiangjiacheng <jiangjiacheng@huawei.com>
Tue, 6 Sep 2022 13:48:30 +0000 (21:48 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Sep 2022 09:53:33 +0000 (11:53 +0200)
commit381c8dbde0610e71bbacd7bf55c34f1f91c80dbb
tree773cda634c92a2ccdd9402ea3b4ebb97b5770626
parent51f8130d78fde3201b49c02b7095ff918b6e658a
remote: remove unnecessary return value and if branch

Function daemonConfigFilePath() will assign a path to
remote_config_file definitely and the path will be validated
in following codes. So, it's unnecessary to return value
from daemonConfigFilePath() and check the returned value.

Signed-off-by: jiangjiacheng <jiangjiacheng@huawei.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
src/remote/remote_daemon.c
src/remote/remote_daemon_config.c
src/remote/remote_daemon_config.h