Skip to content
Permalink
Browse files
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 f69a0e783035cffc39b44a355d0e0470d5d63a0b
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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:
@@ -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 = {

0 comments on commit f69a0e7

Please sign in to comment.