WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] blktap2: Remove uninitialised variable rc

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] blktap2: Remove uninitialised variable rc from tdremus_close().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Nov 2009 23:35:14 -0800
Delivery-date: Sun, 22 Nov 2009 23:35:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1258445152 0
# Node ID aac490021bb8d328d0f1a00a50a7c02cbc1eba1d
# Parent  bec27eb6f72cfb3fcecd8eb3060869fa301a62df
blktap2: Remove uninitialised variable rc from tdremus_close().

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/blktap2/drivers/block-remus.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r bec27eb6f72c -r aac490021bb8 tools/blktap2/drivers/block-remus.c
--- a/tools/blktap2/drivers/block-remus.c       Sat Nov 14 10:32:59 2009 +0000
+++ b/tools/blktap2/drivers/block-remus.c       Tue Nov 17 08:05:52 2009 +0000
@@ -1629,7 +1629,6 @@ static int tdremus_close(td_driver_t *dr
 static int tdremus_close(td_driver_t *driver)
 {
        struct tdremus_state *s = (struct tdremus_state *)driver->data;
-       int rc;
 
        RPRINTF("closing\n");
 
@@ -1646,7 +1645,7 @@ static int tdremus_close(td_driver_t *dr
 
        ctl_close(driver);
 
-       return rc;
+       return 0;
 }
 
 static int tdremus_get_parent_id(td_driver_t *driver, td_disk_id_t *id)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] blktap2: Remove uninitialised variable rc from tdremus_close()., Xen patchbot-unstable <=