direct-io.hg

changeset 5632:5985fc86b3da

Remove incorrect check for terminating nul character.
The terminating nul character is not stored in the store but
added by read_reply.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Jul 01 13:30:45 2005 +0000 (2005-07-01)
parents 749dbd8ae9b0
children 7c95f26c2f0e
files linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Fri Jul 01 12:48:40 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Fri Jul 01 13:30:45 2005 +0000
     1.3 @@ -103,12 +103,6 @@ char *xenbus_read(const char *dir, const
     1.4          } else if(n == 0){
     1.5                  err = -ENOENT;
     1.6                  kfree(data);
     1.7 -        } else if(data[n - 1] != '\0') {
     1.8 -                /* This shouldn't happen: everything is supposed to be a string. */
     1.9 -		printk("XENBUS: Reading path %s: missing null terminator len=%i\n", path, n); 
    1.10 -                err = -EINVAL;
    1.11 -                kfree(data);
    1.12 -                n = 0;
    1.13          }
    1.14          kfree(path);
    1.15    out: