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] [linux-2.6.18-xen] xenbus: Remove dead code.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xenbus: Remove dead code.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Dec 2007 08:20:20 -0800
Delivery-date: Fri, 07 Dec 2007 08:21:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 1196955871 0
# Node ID 424f7b772301d501af6952507b2731e4b8c6da0a
# Parent  69bb553015ce4ef88e33bd296a3f1a38011c7fa3
xenbus: Remove dead code.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/netback/xenbus.c              |    2 --
 drivers/xen/xenbus/xenbus_probe_backend.c |    7 -------
 2 files changed, 9 deletions(-)

diff -r 69bb553015ce -r 424f7b772301 drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Thu Dec 06 15:44:05 2007 +0000
+++ b/drivers/xen/netback/xenbus.c      Thu Dec 06 15:44:31 2007 +0000
@@ -173,8 +173,6 @@ static int netback_uevent(struct xenbus_
        add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &length,
                       "vif=%s", netif->dev->name);
 
-       envp[i] = NULL;
-
        return 0;
 }
 
diff -r 69bb553015ce -r 424f7b772301 drivers/xen/xenbus/xenbus_probe_backend.c
--- a/drivers/xen/xenbus/xenbus_probe_backend.c Thu Dec 06 15:44:05 2007 +0000
+++ b/drivers/xen/xenbus/xenbus_probe_backend.c Thu Dec 06 15:44:31 2007 +0000
@@ -156,13 +156,6 @@ static int xenbus_uevent_backend(struct 
        add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &length,
                       "XENBUS_BASE_PATH=%s", xenbus_backend.root);
 
-       /* terminate, set to next free slot, shrink available space */
-       envp[i] = NULL;
-       envp = &envp[i];
-       num_envp -= i;
-       buffer = &buffer[length];
-       buffer_size -= length;
-
        if (dev->driver) {
                drv = to_xenbus_driver(dev->driver);
                if (drv && drv->uevent)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xenbus: Remove dead code., Xen patchbot-linux-2.6.18-xen <=