WSL2-Linux-Kernel/drivers/misc/cxl
Christophe JAILLET da9db71173 cxl: Fix an error message
'rc' is known to be 0 here.
Initialize 'rc' with the expected error code before using it.

While at it, avoid the affectation of 'rc' in a 'if' to make things more
obvious and linux style.

Fixes: f204e0b8ce ("cxl: Driver code for powernv PCIe based cards for userspace access")
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/fa2b2c9c72335ab4c3d5e6a33415e7f020b1d51b.1620243401.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-14 13:43:26 +02:00
..
Kconfig
Makefile
api.c
base.c
context.c cxl: Fix couple of spellings 2021-03-24 08:26:30 +01:00
cxl.h
cxllib.c
debugfs.c
fault.c cxl: don't manipulate the mm.mm_users field directly 2021-03-24 08:26:30 +01:00
file.c cxl: Fix an error message 2021-05-14 13:43:26 +02:00
flash.c
guest.c
hcalls.c
hcalls.h
irq.c
main.c
native.c
of.c
pci.c
sysfs.c
trace.c
trace.h
vphb.c