Skip to content

Commit 5e49526

Browse files
ye xingchenmpe
authored andcommitted
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 <[email protected]> Signed-off-by: ye xingchen <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 91986d7 commit 5e49526

File tree

1 file changed

+1
-3
lines changed
  • arch/powerpc/platforms/powernv

1 file changed

+1
-3
lines changed

arch/powerpc/platforms/powernv/ocxl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,8 @@ EXPORT_SYMBOL_GPL(pnv_ocxl_spa_release);
478478
int pnv_ocxl_spa_remove_pe_from_cache(void *platform_data, int pe_handle)
479479
{
480480
struct spa_data *data = (struct spa_data *) platform_data;
481-
int rc;
482481

483-
rc = opal_npu_spa_clear_cache(data->phb_opal_id, data->bdfn, pe_handle);
484-
return rc;
482+
return opal_npu_spa_clear_cache(data->phb_opal_id, data->bdfn, pe_handle);
485483
}
486484
EXPORT_SYMBOL_GPL(pnv_ocxl_spa_remove_pe_from_cache);
487485

0 commit comments

Comments
 (0)