patch-2.1.118 linux/include/linux/file.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/asm-sparc/uaccess.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/include/linux/file.h linux/include/linux/file.h
@@ -5,7 +5,7 @@
 #ifndef __LINUX_FILE_H
 #define __LINUX_FILE_H
 
-extern int __fput(struct file *);
+extern void __fput(struct file *);
 extern void insert_file_free(struct file *file);
 
 /*
@@ -58,20 +58,18 @@
 	*file->f_pprev = file->f_next;
 }
 
-extern inline int fput(struct file *file)
+extern inline void fput(struct file *file)
 {
 	int count = file->f_count-1;
-	int error = 0;
 
 	if (!count) {
 		locks_remove_flock(file);
-		error = __fput(file);
+		__fput(file);
 		file->f_count = 0;
 		remove_filp(file);
 		insert_file_free(file);
 	} else
 		file->f_count = count;
-	return error;
 }
 
 extern inline void put_filp(struct file *file)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov