kernfs: Drop unnecessary "mutex" local variable initialization
authorTejun Heo <tj@kernel.org>
Sun, 28 Aug 2022 05:04:33 +0000 (19:04 -1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2022 16:08:44 +0000 (18:08 +0200)
commitb52c2379c38ffa49cbf10e30abc9dc4f9c051d41
treeb878cf2eba18c52046315647fe7c9febc47fd5bb
parent3db48aca879db475844182a24d1760ee3d230627
kernfs: Drop unnecessary "mutex" local variable initialization

These are unnecessary and unconventional. Remove them. Also move variable
declaration into the block that it's used. No functional changes.

Cc: Imran Khan <imran.f.khan@oracle.com>
Tested-by: Chengming Zhou <zhouchengming@bytedance.com>
Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220828050440.734579-3-tj@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c