[netcf-devel] [PATCH 3/5] remove unnecessary calls to get_augeas()

Eric Blake eblake at redhat.com
Tue Mar 17 22:50:53 UTC 2015


On 03/16/2015 09:03 AM, Laine Stump wrote:
> There were several functions in drv_redhat.c that apparently had
> previously required an augeas object, but no longer do (if the augeas
> object was required, the return value of get_augeas() would have been
> saved, and the side effect of rereading the augeas tree from disk
> isn't needed as any subordinate function that required the augeas
> object to be up-to-date would also need to call get_augeas() in order
> to get its own pointer to the augeas object).
> 
> This has no functional effect, it's just removing redundant code.
> ---
>  src/drv_redhat.c | 12 ------------
>  1 file changed, 12 deletions(-)
> 

ACK

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <https://lists.fedorahosted.org/pipermail/netcf-devel/attachments/20150317/22b2a825/attachment.sig>


More information about the netcf-devel mailing list