]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitac9284db6b7b4af150940186b633a233d4ca2bed
tree9e79521bf1587650f5ed056d83e42c6c04704604
parent1a470ce4e9106cc4c3c0edfb2e213dcbb7224dc4
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