lkml.org 
[lkml]   [2019]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] drivers: md: dm-log.c: Remove unused variable 'sz'
Date
Remove unused variable 'sz' in disk_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 8800ec1847b5..67e74362c6ac 100644
--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -800,7 +800,6 @@ static int core_status(struct dm_dirty_log *log, status_type_t status,
static int disk_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) {
@@ -818,7 +817,7 @@ static int disk_status(struct dm_dirty_log *log, status_type_t status,
DMEMIT_SYNC;
}

- return sz;
+ return 0;
}

static struct dm_dirty_log_type _core_type = {
--
2.17.1
\
 
 \ /
  Last update: 2019-12-01 06:44    [W:0.017 / U:1.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site