[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Remove curly braces on all single-line conditional jumps in dispatcher



On 04/13/2011 12:13 PM, Daniel P. Berrange wrote:
> Replace all occurrances of
> 
>    if (....) {
>       goto cleanup;
>    }
> 
> With
> 
>    if (.....)
>       goto cleanup;
> 
> to save one line of code
> 
> * daemon/remote.c: Remove curly braces on single line conditionals
> ---
>  daemon/remote.c |  951 ++++++++++++++++++------------------------------------
>  1 files changed, 317 insertions(+), 634 deletions(-)

The diffstat agrees with your claim.

Looks fairly mechanical.  ACK.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]