OSDN Git Service

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)
commit9210622ab81f7e722da7563166d93b2a028a79d4
tree94ec152cb9def778dc87a05be5906730bdc993fd
parent199b50f4c9485c46c2403d8b3e0eca90ec401ed6
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