[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xenbus: Remove dead code.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |