From: Namjae Jeon Date: Sat, 22 Dec 2012 03:09:58 +0000 (+0900) Subject: f2fs: remove unneeded initialization of nr_dirty in dirty_seglist_info X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=344324f10fad05e40b1047c5e09ebbc77e43c24f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git f2fs: remove unneeded initialization of nr_dirty in dirty_seglist_info Since, the memory for the object of dirty_seglist_info is allocated using kzalloc - which returns zeroed out memory. So, there is no need to initialize the nr_dirty values with zeroes. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 66f5e82ec324..de6240922b0a 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1575,7 +1575,6 @@ static int build_dirty_segmap(struct f2fs_sb_info *sbi) for (i = 0; i < NR_DIRTY_TYPE; i++) { dirty_i->dirty_segmap[i] = kzalloc(bitmap_size, GFP_KERNEL); - dirty_i->nr_dirty[i] = 0; if (!dirty_i->dirty_segmap[i]) return -ENOMEM; }