]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmscan.c: fix -Wunused-but-set-variable warning
authorKai Song <songkai01@inspur.com>
Fri, 5 Nov 2021 20:42:22 +0000 (13:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:40 +0000 (13:30 -0700)
commit60840a27961c49e1a7ac6a76e7d537c811b6915f
treeb3a63bb56e6a7255e949ca6cc090814fe347ad63
parent6a75ce26bf945dedee5b1b98106d963e918ae2cb
mm/vmscan.c: fix -Wunused-but-set-variable warning

We fix the following warning when building kernel with W=1:

  mm/vmscan.c:1362:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]

Link: https://lkml.kernel.org/r/20210924181218.21165-1-songkai01@inspur.com
Signed-off-by: Kai Song <songkai01@inspur.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c