]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/dbgfs: remove unnecessary variables
authorRongwei Wang <rongwei.wang@linux.alibaba.com>
Fri, 5 Nov 2021 20:47:09 +0000 (13:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:45 +0000 (13:30 -0700)
commitd0dd2f2b83c887fe11a33403e885337962284878
tree94ec152cb9def778dc87a05be5906730bdc993fd
parent1a49dc83ef769b0f9ec5710a3e2c7980f07ae6c5
mm/damon/dbgfs: remove unnecessary variables

In some functions, it's unnecessary to declare 'err' and 'ret' variables
at the same time.  This patch mainly to simplify the issue of such
declarations by reusing one variable.

Link: https://lkml.kernel.org/r/20211014073014.35754-1-sj@kernel.org
Signed-off-by: Rongwei Wang <rongwei.wang@linux.alibaba.com>
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/dbgfs.c