]> xenbits.xensource.com Git - libvirt.git/commit
util: virpcivpd: Remove return value from virPCIVPDResourceUpdateKeyword
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jan 2024 16:15:10 +0000 (17:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2024 16:24:07 +0000 (17:24 +0100)
commit9aa303a948a3eb98b727a333e2571d19ae0a81ce
tree80136c493f2de8d5fad1502912116280aa4045ca
parentdd36db2607e40d0df986108224563295b79d969c
util: virpcivpd: Remove return value from virPCIVPDResourceUpdateKeyword

The function always succeeded and after the removal of programing error
checks doesn't even have a 'return false' case. Additionally one of the
tests in 'virpcivpdtest' tested that this function never failed on wrong
data. Embrace this logic and remove the return value and adjust logging
to VIR_DEBUG level to avoid spamming logs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virpcivpd.c
src/util/virpcivpd.h
tests/virpcivpdtest.c