diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-10-28 17:21:59 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-10-28 17:22:16 -0400 |
commit | 19ba54f4645f8c5edae4b08919a37a409b8793aa (patch) | |
tree | 83328233533ef33861fcc0617dd9ca68a981c92f | |
parent | 50e4a98914de13c6f38f50fd1afa06e2c18b3cf7 (diff) |
fs/notify/fanotify/fanotify_user.c: fix warnings
fs/notify/fanotify/fanotify_user.c: In function 'fanotify_release':
fs/notify/fanotify/fanotify_user.c:375: warning: unused variable 'lre'
fs/notify/fanotify/fanotify_user.c:375: warning: unused variable 're'
this is really ugly.
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index fa71d5dfd10..fce66dfbf7d 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -376,11 +376,10 @@ static ssize_t fanotify_write(struct file *file, const char __user *buf, size_t | |||
376 | static int fanotify_release(struct inode *ignored, struct file *file) | 376 | static int fanotify_release(struct inode *ignored, struct file *file) |
377 | { | 377 | { |
378 | struct fsnotify_group *group = file->private_data; | 378 | struct fsnotify_group *group = file->private_data; |
379 | struct fanotify_response_event *re, *lre; | ||
380 | |||
381 | pr_debug("%s: file=%p group=%p\n", __func__, file, group); | ||
382 | 379 | ||
383 | #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS | 380 | #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS |
381 | struct fanotify_response_event *re, *lre; | ||
382 | |||
384 | mutex_lock(&group->fanotify_data.access_mutex); | 383 | mutex_lock(&group->fanotify_data.access_mutex); |
385 | 384 | ||
386 | group->fanotify_data.bypass_perm = true; | 385 | group->fanotify_data.bypass_perm = true; |