summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorXin Hao <xhao@linux.alibaba.com>2021-11-05 21:48:04 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-06 21:30:46 +0100
commita460a36034bad4403c2c62e04a521bc6987ae5db (patch)
tree36b39ebb28e8f6613f325646ae8a5e1eb9cfd798 /mm
parentDocumentation/admin-guide/mm/damon: add a document for DAMON_RECLAIM (diff)
downloadlinux-a460a36034bad4403c2c62e04a521bc6987ae5db.tar.xz
linux-a460a36034bad4403c2c62e04a521bc6987ae5db.zip
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/cover.1634720326.git.xhao@linux.alibaba.com Signed-off-by: Xin Hao <xhao@linux.alibaba.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/damon/vaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c
index 675cd8c7df9b..35fe49080ee9 100644
--- a/mm/damon/vaddr.c
+++ b/mm/damon/vaddr.c
@@ -306,7 +306,7 @@ static void damon_va_apply_three_regions(struct damon_target *t,
struct damon_addr_range bregions[3])
{
struct damon_region *r, *next;
- unsigned int i = 0;
+ unsigned int i;
/* Remove regions which are not in the three big regions now */
damon_for_each_region_safe(r, next, t) {