Message ID | 20200611130237.1994420-1-leon@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fs: Delete always true compilation define | expand |
diff --git a/fs/file.c b/fs/file.c index c8a4e4c86e55..cab9d55765dd 100644 --- a/fs/file.c +++ b/fs/file.c @@ -522,13 +522,11 @@ int __alloc_fd(struct files_struct *files, else __clear_close_on_exec(fd, fdt); error = fd; -#if 1 /* Sanity check */ if (rcu_access_pointer(fdt->fd[fd]) != NULL) { printk(KERN_WARNING "alloc_fd: slot %d not NULL!\n", fd); rcu_assign_pointer(fdt->fd[fd], NULL); } -#endif out: spin_unlock(&files->file_lock);