]> 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)
commitb68b3e11fb1201b98d2f660f1015fec8be5594a8
tree9e79521bf1587650f5ed056d83e42c6c04704604
parentb954d67c6aa173d9ea337e32694d10b709749947
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