aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-01-07 12:20:37 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2022-05-19 23:26:29 -0400
commite5ca024e165d952b12da5ea86c36ea70d70bfc98 (patch)
treeb7be80c4affcd5088462a151205deaeb596ae32c /fs/namei.c
parentLinux 5.18-rc1 (diff)
downloadlinux-dev-e5ca024e165d952b12da5ea86c36ea70d70bfc98.tar.xz
linux-dev-e5ca024e165d952b12da5ea86c36ea70d70bfc98.zip
fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy()
!foo() != 0 is a strange way to spell !foo(); fallout from "fs: make unlazy_walk() error handling consistent"... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3f1829b3ab5b..9e327d0717d0 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1754,7 +1754,7 @@ static int reserve_stack(struct nameidata *nd, struct path *link, unsigned seq)
// unlazy even if we fail to grab the link - cleanup needs it
bool grabbed_link = legitimize_path(nd, link, seq);
- if (!try_to_unlazy(nd) != 0 || !grabbed_link)
+ if (!try_to_unlazy(nd) || !grabbed_link)
return -ECHILD;
if (nd_alloc_stack(nd))