]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: mm: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 26 Aug 2022 07:29:03 +0000 (07:29 +0000)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 3 Sep 2022 10:01:27 +0000 (18:01 +0800)
commit967243c37c13b0fb80c163c5b222afee6a6bfd66
tree9e79521bf1587650f5ed056d83e42c6c04704604
parent67d0945ce444df3debb0d211ce9fcc8a47453824
LoongArch: mm: Remove the unneeded result variable

Return the value pa_to_nid() directly instead of storing it in another
redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/mm/init.c