lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 29 Oct 2019 02:24:18 +0530
From:   Saurav Girepunje <saurav.girepunje@...il.com>
To:     manoj@...ux.ibm.com, mrochs@...ux.ibm.com, ukrishn@...ux.ibm.com,
        jejb@...ux.ibm.com, martin.petersen@...cle.com,
        linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] cxlflash: superpipe.c: remove unneeded variable

Remove unneeded variable rc as it is not modified in function.

Signed-off-by: Saurav Girepunje <saurav.girepunje@...il.com>
---
 drivers/scsi/cxlflash/superpipe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/scsi/cxlflash/superpipe.c
index 593669ac3669..4ca64cdec438 100644
--- a/drivers/scsi/cxlflash/superpipe.c
+++ b/drivers/scsi/cxlflash/superpipe.c
@@ -1233,7 +1233,7 @@ const struct file_operations cxlflash_cxl_fops = {
  */
 int cxlflash_mark_contexts_error(struct cxlflash_cfg *cfg)
 {
-	int i, rc = 0;
+	int i;
 	struct ctx_info *ctxi = NULL;
 
 	mutex_lock(&cfg->ctx_tbl_list_mutex);
@@ -1252,7 +1252,7 @@ int cxlflash_mark_contexts_error(struct cxlflash_cfg *cfg)
 	}
 
 	mutex_unlock(&cfg->ctx_tbl_list_mutex);
-	return rc;
+	return 0;
 }
 
 /*
-- 
2.20.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ