public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drivers: md: dm-log.c: Remove unused variable 'sz'
@ 2019-12-01  5:42 Jieun Kim
  2019-12-01  7:46 ` kbuild test robot
  0 siblings, 1 reply; 4+ messages in thread
From: Jieun Kim @ 2019-12-01  5:42 UTC (permalink / raw)
  To: Mike Snitzer
  Cc: Alasdair Kergon, dm-devel, linux-kernel, kernel-janitors,
	Jieun Kim

Remove unused variable 'sz' in core_status function
detected by coccinelle scripts(returnvar.cocci)

Signed-off-by: Jieun Kim <Jieun.Kim4758@gmail.com>
---
 drivers/md/dm-log.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c
index 33e71ea6cc14..8800ec1847b5 100644
--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -781,7 +781,6 @@ static region_t core_get_sync_count(struct dm_dirty_log *log)
 static int core_status(struct dm_dirty_log *log, status_type_t status,
 		       char *result, unsigned int maxlen)
 {
-	int sz = 0;
 	struct log_c *lc = log->context;
 
 	switch(status) {
@@ -795,7 +794,7 @@ static int core_status(struct dm_dirty_log *log, status_type_t status,
 		DMEMIT_SYNC;
 	}
 
-	return sz;
+	return 0;
 }
 
 static int disk_status(struct dm_dirty_log *log, status_type_t status,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-03 11:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-01  5:42 [PATCH 1/2] drivers: md: dm-log.c: Remove unused variable 'sz' Jieun Kim
2019-12-01  7:46 ` kbuild test robot
2019-12-02 17:39   ` Mike Snitzer
2019-12-03 11:25     ` Jieun Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox