hfsplus: remove unnecessary variable initialization
authorXU pengfei <xupengfei@nfschina.com>
Wed, 21 Dec 2022 03:21:20 +0000 (11:21 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:50:01 +0000 (22:50 -0800)
commit1b2fde2d2ed0f99ea3c6c021d1ec0db58de9e7fd
tree2e3219ccaa350b6f1877897d321405f26a69b656
parentd5528cc16893f1f64b07936b1e88aa023128debb
hfsplus: remove unnecessary variable initialization

Variables are assigned first and then used.  Initialization is not
required.

[akpm@linux-foundation.org: give hfsplus_listxattr:key_len narrower scope]
Link: https://lkml.kernel.org/r/20221221032119.10037-1-xupengfei@nfschina.com
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Reviewed-by: Andrew Morton <akpm@linux-foudation.org>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hfsplus/xattr.c