From: cl349@firebug.cl.cam.ac.uk Date: Thu, 25 Aug 2005 14:16:23 +0000 (+0000) Subject: g/c unused code. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16856 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2ef324a62bdafcedb64477195e1d31fbabbd6cdc;p=xen.git g/c unused code. Signed-off-by: Christian Limpach --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c index 0b72dd91ca..e0302afda3 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c @@ -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)) {