Skip to content

Commit a460a36

Browse files
Xin Haotorvalds
authored andcommitted
mm/damon: remove unnecessary variable initialization
Patch series "mm/damon: Fix some small bugs", v4. This patch (of 2): In 'damon_va_apply_three_regions' there is no need to set variable 'i' to zero. Link: https://lkml.kernel.org/r/b7df8d3dad0943a37e01f60c441b1968b2b20354.1634720326.git.xhao@linux.alibaba.com Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xin Hao <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent bec976b commit a460a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/damon/vaddr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static void damon_va_apply_three_regions(struct damon_target *t,
306306
struct damon_addr_range bregions[3])
307307
{
308308
struct damon_region *r, *next;
309-
unsigned int i = 0;
309+
unsigned int i;
310310

311311
/* Remove regions which are not in the three big regions now */
312312
damon_for_each_region_safe(r, next, t) {

0 commit comments

Comments
 (0)