lkml.org 
[lkml]   [2019]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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@gmail.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
\
 
 \ /
  Last update: 2019-10-28 21:54    [W:0.025 / U:26.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site