Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0c24c3b authored by Al Viro's avatar Al Viro
Browse files

link_path_walk: handle get_link() returning ERR_PTR() immediately



If we get ERR_PTR() from get_link(), we are guaranteed to get err != 0
when we break out of do-while, so we are going to hit if (err) return err;
shortly after it.  Pull that into the if (IS_ERR(s)) body.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 95fa25d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment