Skip to content
Commit 5bf33f04 authored by Mateusz Nosek's avatar Mateusz Nosek Committed by Greg Kroah-Hartman
Browse files

fs/kernfs/dir.c: Clean code by removing always true condition



Previously there was an additional check if variable pos is not null.
However, this check happens after entering while loop and only then,
which can happen only if pos is not null.
Therefore the additional check is redundant and can be removed.

Signed-off-by: default avatarMateusz Nosek <mateusznosek0@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20191230191628.21099-1-mateusznosek0@gmail.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ef9ffc1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment