ocxl: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 6 Sep 2022 07:20:06 +0000 (07:20 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:14 +0000 (19:22 +1000)
commit5e4952656bca1b5d8c2be36682dc66d844797ad2
tree9bfacf2274000222318a433e7140148c7fd223b6
parent91986d7f0300c2c01722e0eac5119bb0946fe9b5
ocxl: Remove the unneeded result variable

Return the value opal_npu_spa_clear_cache() 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>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220906072006.337099-1-ye.xingchen@zte.com.cn
arch/powerpc/platforms/powernv/ocxl.c