ia64/xen-unstable

changeset 6423:f4bc62ee03b4

g/c unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 14:16:23 2005 +0000 (2005-08-25)
parents e24fd7012ffb
children 4abd299ef2f6
files linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Aug 25 10:09:39 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Aug 25 14:16:23 2005 +0000
     1.3 @@ -171,8 +171,7 @@ abort:
     1.4  static void backend_changed(struct xenbus_watch *watch, const char *node)
     1.5  {
     1.6  	int err;
     1.7 -	char *p;
     1.8 -	long int handle, pdev;
     1.9 +	long int handle;
    1.10  	struct backend_info *be
    1.11  		= container_of(watch, struct backend_info, backend_watch);
    1.12  	struct xenbus_device *dev = be->dev;
    1.13 @@ -186,29 +185,6 @@ static void backend_changed(struct xenbu
    1.14  		return;
    1.15  	}
    1.16  
    1.17 -#if 0
    1.18 -	err = xenbus_scanf(dev->nodename, "physical-device", "%li", &pdev);
    1.19 -	if (XENBUS_EXIST_ERR(err))
    1.20 -		return;
    1.21 -	if (err < 0) {
    1.22 -		xenbus_dev_error(dev, err, "reading physical-device");
    1.23 -		return;
    1.24 -	}
    1.25 -	if (be->pdev && be->pdev != pdev) {
    1.26 -		printk(KERN_WARNING
    1.27 -		       "changing physical-device not supported\n");
    1.28 -		return;
    1.29 -	}
    1.30 -	be->pdev = pdev;
    1.31 -
    1.32 -	/* If there's a read-only node, we're read only. */
    1.33 -	p = xenbus_read(dev->nodename, "read-only", NULL);
    1.34 -	if (!IS_ERR(p)) {
    1.35 -		be->readonly = 1;
    1.36 -		kfree(p);
    1.37 -	}
    1.38 -#endif
    1.39 -
    1.40  	if (be->netif == NULL) {
    1.41  		be->netif = alloc_netif(be->frontend_id, handle, be_mac);
    1.42  		if (IS_ERR(be->netif)) {