[lkml]   [2020]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] fs/kernfs/dir.c: Clean code by removing always true condition
On Mon, Dec 30, 2019 at 08:16:28PM +0100, wrote:
> From: Mateusz Nosek <>
> 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 <>

Acked-by: Tejun Heo <>

Greg, can you please route this one?



 \ /
  Last update: 2020-01-07 16:51    [W:0.031 / U:9.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site