[libvirt] [PATCH] Replace 'goto err' with 'goto cleanup' in udev interface driver

Michal Privoznik mprivozn at redhat.com
Thu May 9 13:20:54 UTC 2013


On 09.05.2013 15:02, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The udev interface driver did not follow standard naming
> convention for goto labels.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/interface/interface_backend_udev.c | 32 ++++++++++++++++----------------
>  1 file changed, 16 insertions(+), 16 deletions(-)


Do we want to bother with udevConnectListAllInterfaces? The 'cleanup'
label makes a tiny bit of sense although I'd vote for 'error'.

However, in:
udevGetIfaceDefBond
udevGetIfaceDefVlan
udevGetIfaceDef

s/cleanup/error/ shall be made.

But this patch is good as-is. ACK if you reconsider extending this patch
to functions I've pointed out.

Michal




More information about the libvir-list mailing list