ia64/xen-unstable
changeset 525:155febe2fe2b
bitkeeper revision 1.292 (3f098f4cFNE1UMMqfaE3NZIaO_hGvA)
Dead code elimination.
Dead code elimination.
author | sos22@labyrinth.cl.cam.ac.uk |
---|---|
date | Mon Jul 07 15:18:36 2003 +0000 (2003-07-07) |
parents | 66de2841a3d3 |
children | 25c290356870 |
files | xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c |
line diff
1.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c Mon Jul 07 15:11:35 2003 +0000 1.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/dom0_core.c Mon Jul 07 15:18:36 2003 +0000 1.3 @@ -55,24 +55,6 @@ unsigned long direct_mmap(unsigned long, 1.4 int direct_unmap(unsigned long, unsigned long); 1.5 int direct_disc_unmap(unsigned long, unsigned long, int); 1.6 1.7 -static unsigned char readbuf[1204]; 1.8 - 1.9 -static int dom0_cmd_read(struct file *fp, char *buf, size_t count, loff_t *off) 1.10 -{ 1.11 - int copied, maxlen; 1.12 - if (count > 1024) 1.13 - count = 1024; 1.14 - maxlen = strlen(readbuf); 1.15 - if (count > maxlen) 1.16 - count = maxlen; 1.17 - copied = count - copy_to_user(buf, readbuf, count); 1.18 - *readbuf = '\0'; 1.19 - if (copied != count) 1.20 - return -EFAULT; 1.21 - else 1.22 - return copied; 1.23 -} 1.24 - 1.25 static ssize_t dom_usage_read(struct file * file, char * buff, size_t size, loff_t * off) 1.26 { 1.27 char str[256]; 1.28 @@ -458,7 +440,6 @@ static int dom0_cmd_ioctl(struct inode * 1.29 1.30 1.31 static struct file_operations dom0_cmd_file_ops = { 1.32 - read : dom0_cmd_read, 1.33 write : dom0_cmd_write, 1.34 ioctl : dom0_cmd_ioctl 1.35 }; 1.36 @@ -469,7 +450,6 @@ static int __init init_module(void) 1.37 xeno_base = proc_mkdir("xeno", &proc_root); 1.38 1.39 /* xeno control interface */ 1.40 - *readbuf = '\0'; 1.41 dom0_cmd_intf = create_proc_entry("dom0_cmd", 0600, xeno_base); 1.42 1.43 if ( dom0_cmd_intf != NULL )