[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Nov 2021 07:53:31 +0000
From: cgel.zte@...il.com
To: agk@...hat.com
Cc: snitzer@...hat.com, dm-devel@...hat.com,
linux-kernel@...r.kernel.org,
ran jianping <ran.jianping@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] dm: remove unneeded variable
From: ran jianping <ran.jianping@....com.cn>
Fix the following coccicheck review:
./drivers/md/dm-ps-round-robin.c:91:5-7:Unneeded variable
Remove unneeded variable used to store return value.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ran jianping <ran.jianping@....com.cn>
---
drivers/md/dm-ps-round-robin.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/dm-ps-round-robin.c b/drivers/md/dm-ps-round-robin.c
index 27f44c5fa04e..455fc02af1cf 100644
--- a/drivers/md/dm-ps-round-robin.c
+++ b/drivers/md/dm-ps-round-robin.c
@@ -88,7 +88,6 @@ static int rr_status(struct path_selector *ps, struct dm_path *path,
status_type_t type, char *result, unsigned int maxlen)
{
struct path_info *pi;
- int sz = 0;
if (!path)
DMEMIT("0 ");
@@ -107,7 +106,7 @@ static int rr_status(struct path_selector *ps, struct dm_path *path,
}
}
- return sz;
+ return 0;
}
/*
--
2.25.1
Powered by blists - more mailing lists