Re: [PATCH] fs/kernfs/dir.c: Clean code by removing always true condition

From: Tejun Heo
Date: Tue Jan 07 2020 - 10:51:14 EST

On Mon, Dec 30, 2019 at 08:16:28PM +0100, mateusznosek0@xxxxxxxxx wrote:
> From: Mateusz Nosek <mateusznosek0@xxxxxxxxx>
> 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: Mateusz Nosek <mateusznosek0@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Greg, can you please route this one?