fs/ntfs3: Fix wrong cast in xattr.c
authorDaniel Pinto <danielpinto52@gmail.com>
Tue, 15 Nov 2022 08:17:32 +0000 (08:17 +0000)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 27 Mar 2023 12:59:07 +0000 (16:59 +0400)
commit0203471df1d5242ab63692ddd9e95f37f0cddadc
treea6a30974b4513ea15373d10f73fda1b45a63f16c
parent197b6b60ae7bc51dd0814953c562833143b292aa
fs/ntfs3: Fix wrong cast in xattr.c

cpu_to_be32 and be32_to_cpu respectively return and receive
__be32, change the cast to the correct types.

Fixes the following sparse warnings:
fs/ntfs3/xattr.c:811:48: sparse: sparse: incorrect type in
                         assignment (different base types)
fs/ntfs3/xattr.c:901:34: sparse: sparse: cast to restricted __be32

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Pinto <danielpinto52@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/xattr.c