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

Re: [libvirt] [PATCH 1/2] bhyve: cleanup: remove unnecessary variable



On Tue, Mar 29, 2016 at 03:20:55PM +0300, Maxim Nestratov wrote:
> ---
>  src/bhyve/bhyve_driver.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c
> index 9219890..4d341b5 100644
> --- a/src/bhyve/bhyve_driver.c
> +++ b/src/bhyve/bhyve_driver.c
> @@ -1187,8 +1187,6 @@ bhyveStateInitialize(bool privileged,
>                       virStateInhibitCallback callback ATTRIBUTE_UNUSED,
>                       void *opaque ATTRIBUTE_UNUSED)
>  {
> -    virConnectPtr conn = NULL;
> -
>      if (!privileged) {
>          VIR_INFO("Not running privileged, disabling driver");
>          return 0;
> @@ -1259,12 +1257,9 @@ bhyveStateInitialize(bool privileged,
>  
>      virBhyveProcessReconnectAll(bhyve_driver);
>  
> -    virObjectUnref(conn);
> -
>      return 0;
>  
>   cleanup:
> -    virObjectUnref(conn);
>      bhyveStateCleanup();
>      return -1;
>  }

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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