patch-2.1.31 linux/fs/proc/openpromfs.c
Next file: linux/fs/stat.c
Previous file: linux/fs/proc/kmsg.c
Back to the patch index
Back to the overall index
-  Lines: 26
-  Date:
Wed Apr  2 17:43:22 1997
-  Orig file: 
v2.1.30/linux/fs/proc/openpromfs.c
-  Orig date: 
Sun Jan 26 02:07:45 1997
diff -u --recursive --new-file v2.1.30/linux/fs/proc/openpromfs.c linux/fs/proc/openpromfs.c
@@ -405,7 +405,7 @@
 	return filp->f_pos - k;
 }
 
-void property_release (struct inode *inode, struct file *filp)
+int property_release (struct inode *inode, struct file *filp)
 {
 	openprom_property *op = (openprom_property *)filp->private_data;
 	unsigned long flags;
@@ -413,7 +413,7 @@
 	u32 node;
 	
 	if (!op)
-		return;
+		return 0;
 	node = nodes[(u16)((uint)inode->u.generic_ip)].node;
 	if ((u16)((uint)inode->u.generic_ip) == aliases) {
 		if ((op->flag & OPP_DIRTY) && (op->flag & OPP_STRING)) {
@@ -456,6 +456,7 @@
 		}
 	}
 	kfree (filp->private_data);
+	return 0;
 }
 
 static struct file_operations openpromfs_prop_ops = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov