[PATCH 28/39] virResctrlAllocNewFromInfo: Use g_autoptr for 'ret'

Ján Tomko jtomko at redhat.com
Wed Apr 7 16:59:01 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>Remove 'cleanup' and 'error' labels by switching 'ret' to automatic
>pointer and stealing it in the return statement.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virresctrl.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210407/eae18d5a/attachment-0001.sig>


More information about the libvir-list mailing list