fs/ntfs3: Remove unnecessary 'NULL' values from pointers
authorLi kunyu <kunyu@nfschina.com>
Mon, 4 Jul 2022 10:31:13 +0000 (18:31 +0800)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 6 Jul 2022 15:49:56 +0000 (18:49 +0300)
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>
fs/ntfs3/index.c

index 84ccc14..ba2a07d 100644 (file)
@@ -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;