From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262214AbVGMRxj (ORCPT ); Wed, 13 Jul 2005 13:53:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262158AbVGMRvE (ORCPT ); Wed, 13 Jul 2005 13:51:04 -0400 Received: from peabody.ximian.com ([130.57.169.10]:7814 "EHLO peabody.ximian.com") by vger.kernel.org with ESMTP id S261995AbVGMRtu (ORCPT ); Wed, 13 Jul 2005 13:49:50 -0400 Subject: [patch 3/3] inotify: misc cleanup From: Robert Love To: Linus Torvalds Cc: John McCutchan , Andrew Morton , Linux Kernel Mailing List Content-Type: text/plain Date: Wed, 13 Jul 2005 13:49:23 -0400 Message-Id: <1121276963.6384.30.camel@betsy> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Linus, Real simple, basic cleanup. Please, apply. Robert Love Signed-off-by: Robert Love fs/inotify.c | 9 +++------ include/linux/sched.h | 2 +- kernel/user.c | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff -urN linux-inotify/fs/inotify.c linux/fs/inotify.c --- linux-inotify/fs/inotify.c 2005-07-13 11:26:02.000000000 -0400 +++ linux/fs/inotify.c 2005-07-13 11:41:25.000000000 -0400 @@ -29,8 +29,6 @@ #include #include #include -#include -#include #include #include #include @@ -936,7 +934,7 @@ dev = filp->private_data; - ret = find_inode ((const char __user*)path, &nd); + ret = find_inode((const char __user*) path, &nd); if (ret) goto fput_and_out; @@ -993,8 +991,9 @@ if (!filp) return -EBADF; dev = filp->private_data; - ret = inotify_ignore (dev, wd); + ret = inotify_ignore(dev, wd); fput(filp); + return ret; } @@ -1034,8 +1033,6 @@ sizeof(struct inotify_kernel_event), 0, SLAB_PANIC, NULL, NULL); - printk(KERN_INFO "inotify syscall\n"); - return 0; }