Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dm snapshot: remove unneeded variable
Fix the following coccicheck review:
./drivers/md/dm-snap-transient.c:91:10-12: Unneeded variable

Remove unneeded variable used to store return value.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
  • Loading branch information
ran jianping authored and intel-lab-lkp committed Nov 11, 2021
1 parent 7552750 commit f69a0e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/dm-snap-transient.c
Expand Up @@ -88,7 +88,6 @@ static unsigned transient_status(struct dm_exception_store *store,
status_type_t status, char *result,
unsigned maxlen)
{
unsigned sz = 0;

switch (status) {
case STATUSTYPE_INFO:
Expand All @@ -101,7 +100,7 @@ static unsigned transient_status(struct dm_exception_store *store,
break;
}

return sz;
return 0;
}

static struct dm_exception_store_type _transient_type = {
Expand Down

0 comments on commit f69a0e7

Please sign in to comment.