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

Eric Blake eblake at redhat.com
Wed Apr 13 23:30:06 UTC 2011


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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110413/6f2c06c1/attachment-0001.sig>


More information about the libvir-list mailing list