Skip to content

Commit e5ca024

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent 3123109 commit e5ca024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ static int reserve_stack(struct nameidata *nd, struct path *link, unsigned seq)
17541754
// unlazy even if we fail to grab the link - cleanup needs it
17551755
bool grabbed_link = legitimize_path(nd, link, seq);
17561756

1757-
if (!try_to_unlazy(nd) != 0 || !grabbed_link)
1757+
if (!try_to_unlazy(nd) || !grabbed_link)
17581758
return -ECHILD;
17591759

17601760
if (nd_alloc_stack(nd))

0 commit comments

Comments
 (0)