]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/generic.c
Use WARN() in fs/proc/
[linux-2.6-omap-h63xx.git] / fs / proc / generic.c
index bc0a0dd2d8447a1281ec125148c5a4e3323bb697..cb4096cc3fb7456f96a5a4e30dc1957e0707b10e 100644 (file)
@@ -806,12 +806,9 @@ continue_removing:
        if (S_ISDIR(de->mode))
                parent->nlink--;
        de->nlink = 0;
-       if (de->subdir) {
-               printk(KERN_WARNING "%s: removing non-empty directory "
+       WARN(de->subdir, KERN_WARNING "%s: removing non-empty directory "
                        "'%s/%s', leaking at least '%s'\n", __func__,
                        de->parent->name, de->name, de->subdir->name);
-               WARN_ON(1);
-       }
        if (atomic_dec_and_test(&de->count))
                free_proc_entry(de);
 }