g/c unused code.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 25 Aug 2005 14:16:23 +0000 (14:16 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 25 Aug 2005 14:16:23 +0000 (14:16 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c

index 0b72dd91cab3692a46758e8f9c1ad31c02c4985a..e0302afda3e484e6f3a66d839c1e2d194289d557 100644 (file)
@@ -171,8 +171,7 @@ abort:
 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;
@@ -186,29 +185,6 @@ static void backend_changed(struct xenbus_watch *watch, const char *node)
                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);
                if (IS_ERR(be->netif)) {