* [PATCH] cxlflash: superpipe.c: remove unneeded variable
@ 2019-10-28 20:54 Saurav Girepunje
0 siblings, 0 replies; only message in thread
From: Saurav Girepunje @ 2019-10-28 20:54 UTC (permalink / raw
To: manoj, mrochs, ukrishn, jejb, martin.petersen, linux-scsi,
linux-kernel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-28 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28 20:54 [PATCH] cxlflash: superpipe.c: remove unneeded variable Saurav Girepunje
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.