Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocxl: remove redundant rc variable

Return value from ocxl_context_attach() directly instead
of taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@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/20211215060438.441918-1-chi.minghao@zte.com.cn

authored by

Minghao Chi and committed by
Michael Ellerman
30e120e6 467ba14e

+1 -3
+1 -3
drivers/misc/ocxl/file.c
··· 74 74 { 75 75 struct ocxl_ioctl_attach arg; 76 76 u64 amr = 0; 77 - int rc; 78 77 79 78 pr_debug("%s for context %d\n", __func__, ctx->pasid); 80 79 ··· 85 86 return -EINVAL; 86 87 87 88 amr = arg.amr & mfspr(SPRN_UAMOR); 88 - rc = ocxl_context_attach(ctx, amr, current->mm); 89 - return rc; 89 + return ocxl_context_attach(ctx, amr, current->mm); 90 90 } 91 91 92 92 static long afu_ioctl_get_metadata(struct ocxl_context *ctx,