The variable "sz" is unneeded, return 0 will be okay. Signed-off-by: Shaomin Deng <dengshaomin@xxxxxxxxxx> --- 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 0c6620e7b7bf..a4955eb96d6f 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c @@ -805,7 +805,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) { @@ -828,7 +827,7 @@ static int disk_status(struct dm_dirty_log *log, status_type_t status, break; } - return sz; + return 0; } static struct dm_dirty_log_type _core_type = { -- 2.35.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel