diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-07-04 12:31:13 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-07-06 17:49:56 +0200 |
commit | 604a9d272dc3802d880e0510b9d145b1090b3f8a (patch) | |
tree | 6f35be4f84fbfc950d61a47b4a0145f466040b9b /fs/ntfs3/index.c | |
parent | fs/ntfs3: Remove duplicated assignment to variable r (diff) | |
download | linux-604a9d272dc3802d880e0510b9d145b1090b3f8a.tar.xz linux-604a9d272dc3802d880e0510b9d145b1090b3f8a.zip |
fs/ntfs3: Remove unnecessary 'NULL' values from pointers
There is no need to initialize with NULL as it'll be rewritten later.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/index.c')
-rw-r--r-- | fs/ntfs3/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c index 84ccc1409874..ba2a07dfeaf5 100644 --- a/fs/ntfs3/index.c +++ b/fs/ntfs3/index.c @@ -1678,8 +1678,8 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni, { int err; const struct NTFS_DE *sp; - struct NTFS_DE *e, *de_t, *up_e = NULL; - struct indx_node *n2 = NULL; + struct NTFS_DE *e, *de_t, *up_e; + struct indx_node *n2; struct indx_node *n1 = fnd->nodes[level]; struct INDEX_HDR *hdr1 = &n1->index->ihdr; struct INDEX_HDR *hdr2; |