Skip to content

Commit

Permalink
dm: Remove the unneeeded variable
Browse files Browse the repository at this point in the history
The variable "sz" is unneeded, return 0 will be okay.

Signed-off-by: Shaomin Deng <dengshaomin@cdjrlc.com>
  • Loading branch information
Shaomin Deng authored and intel-lab-lkp committed Aug 27, 2022
1 parent 1c23f9e commit fd20974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/dm-log.c
Expand Up @@ -803,7 +803,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) {
Expand All @@ -826,7 +825,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 = {
Expand Down

0 comments on commit fd20974

Please sign in to comment.