Просмотр исходного кода

[PATCH] inotify: misc cleanup

Really simple, basic cleanup.

Signed-off-by: Robert Love <rml@novell.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Robert Love 20 лет назад
Родитель
Сommit
9a556e8908
1 измененных файлов с 3 добавлено и 6 удалено
  1. 3 6
      fs/inotify.c

+ 3 - 6
fs/inotify.c

@@ -29,8 +29,6 @@
 #include <linux/mount.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
 #include <linux/namei.h>
 #include <linux/poll.h>
 #include <linux/poll.h>
-#include <linux/device.h>
-#include <linux/miscdevice.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/list.h>
 #include <linux/writeback.h>
 #include <linux/writeback.h>
@@ -934,7 +932,7 @@ asmlinkage long sys_inotify_add_watch(int fd, const char *path, u32 mask)
 
 
 	dev = filp->private_data;
 	dev = filp->private_data;
 
 
-	ret = find_inode ((const char __user*)path, &nd);
+	ret = find_inode((const char __user*) path, &nd);
 	if (ret)
 	if (ret)
 		goto fput_and_out;
 		goto fput_and_out;
 
 
@@ -991,8 +989,9 @@ asmlinkage long sys_inotify_rm_watch(int fd, u32 wd)
 	if (!filp)
 	if (!filp)
 		return -EBADF;
 		return -EBADF;
 	dev = filp->private_data;
 	dev = filp->private_data;
-	ret = inotify_ignore (dev, wd);
+	ret = inotify_ignore(dev, wd);
 	fput(filp);
 	fput(filp);
+
 	return ret;
 	return ret;
 }
 }
 
 
@@ -1032,8 +1031,6 @@ static int __init inotify_init(void)
 					 sizeof(struct inotify_kernel_event),
 					 sizeof(struct inotify_kernel_event),
 					 0, SLAB_PANIC, NULL, NULL);
 					 0, SLAB_PANIC, NULL, NULL);
 
 
-	printk(KERN_INFO "inotify syscall\n");
-
 	return 0;
 	return 0;
 }
 }