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] g/c unused code.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID f4bc62ee03b4b74da6b5fd6a6e3479b23dff5c40
# Parent  e24fd7012ffb9783a29990a69b922ebf104e3a82
g/c unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r e24fd7012ffb -r f4bc62ee03b4 
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Thu Aug 25 10:09:39 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Thu Aug 25 14:16:23 2005
@@ -171,8 +171,7 @@
 static void backend_changed(struct xenbus_watch *watch, const char *node)
 {
        int err;
-       char *p;
-       long int handle, pdev;
+       long int handle;
        struct backend_info *be
                = container_of(watch, struct backend_info, backend_watch);
        struct xenbus_device *dev = be->dev;
@@ -185,29 +184,6 @@
                xenbus_dev_error(dev, err, "reading handle");
                return;
        }
-
-#if 0
-       err = xenbus_scanf(dev->nodename, "physical-device", "%li", &pdev);
-       if (XENBUS_EXIST_ERR(err))
-               return;
-       if (err < 0) {
-               xenbus_dev_error(dev, err, "reading physical-device");
-               return;
-       }
-       if (be->pdev && be->pdev != pdev) {
-               printk(KERN_WARNING
-                      "changing physical-device not supported\n");
-               return;
-       }
-       be->pdev = pdev;
-
-       /* If there's a read-only node, we're read only. */
-       p = xenbus_read(dev->nodename, "read-only", NULL);
-       if (!IS_ERR(p)) {
-               be->readonly = 1;
-               kfree(p);
-       }
-#endif
 
        if (be->netif == NULL) {
                be->netif = alloc_netif(be->frontend_id, handle, be_mac);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] g/c unused code., Xen patchbot -unstable <=