Skip to contentSkip to conversation

cxlflash: superpipe.c: remove unneeded variable

PATCH New Saurav Girepunje 1 participant 1 message Oct 28, 2019 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxlflash: superpipe.c: remove unneeded variable

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

---
 drivers/scsi/cxlflash/superpipe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/cxlflash/superpipe.c +2 -2
index 593669ac3669..4ca64cdec438 100644
@@ -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;
 }
 
 /*
Signature · 1 line
2.20.1