]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit376fe5c738f817f4e71bcd215a495f23ef3d2ac1
tree56cd5517760e217930701a27d48e8d1537b8e54d
parentd9b290b6f1bf974942fdc0283a8ffd3f4eb70916
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