aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ibmasm/module.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-05-05 19:38:49 +0000
committerGreg Kroah-Hartman <[email protected]>2021-05-14 11:43:26 +0000
commitda9db711733067b45ffbcd582387ad86369e2c62 (patch)
treecf623d0caf15fe31887ec68f0a47091e9584e369 /drivers/misc/ibmasm/module.c
parentuio: uio_pci_generic: add memory resource mappings (diff)
downloadkernel-da9db711733067b45ffbcd582387ad86369e2c62.tar.gz
kernel-da9db711733067b45ffbcd582387ad86369e2c62.zip
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: f204e0b8cedd ("cxl: Driver code for powernv PCIe based cards for userspace access") Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/fa2b2c9c72335ab4c3d5e6a33415e7f020b1d51b.1620243401.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions