no need to check it in the caller Signed-off-by: Al Viro --- fs/file_attr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/file_attr.c b/fs/file_attr.c index 4c4916632f11..f9e4d4014afc 100644 --- a/fs/file_attr.c +++ b/fs/file_attr.c @@ -394,9 +394,6 @@ SYSCALL_DEFINE5(file_getattr, int, dfd, const char __user *, filename, return -EINVAL; name = getname_maybe_null(filename, at_flags); - if (IS_ERR(name)) - return PTR_ERR(name); - if (!name && dfd >= 0) { CLASS(fd, f)(dfd); if (fd_empty(f)) -- 2.47.3