summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2023-11-13 02:52:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-27 14:51:24 +0100
commitbc1183a63057839b18e955b6d68abbb20d37b0f1 (patch)
treeca620f93966b8438ff335396c5237823a70c4534 /drivers/misc
parentmisc: ocxl: link: Remove unnecessary (void*) conversions (diff)
downloadlinux-bc1183a63057839b18e955b6d68abbb20d37b0f1.tar.xz
linux-bc1183a63057839b18e955b6d68abbb20d37b0f1.zip
misc: ocxl: main: Remove unnecessary ‘0’ values from rc
rc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu <kunyu@nfschina.com> Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Link: https://lore.kernel.org/r/20231113015229.12074-1-kunyu@nfschina.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ocxl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c
index ef73cf35dda2..658974143c3c 100644
--- a/drivers/misc/ocxl/main.c
+++ b/drivers/misc/ocxl/main.c
@@ -7,7 +7,7 @@
static int __init init_ocxl(void)
{
- int rc = 0;
+ int rc;
if (!tlbie_capable)
return -EINVAL;