ocxl: remove redundant rc variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 15 Dec 2021 06:04:38 +0000 (06:04 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Dec 2021 01:15:33 +0000 (12:15 +1100)
commit30e120e6a9d247cec7effd55fd6783d5c619ed4c
tree56cd5517760e217930701a27d48e8d1537b8e54d
parent467ba14e1660b52a2f9338b484704c461bd23019
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
drivers/misc/ocxl/file.c