Skip to content
Permalink
Browse files
dm: remove unneeded variable
Fix the following coccicheck review:
./drivers/md/dm-ps-round-robin.c:91:5-7: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 dbcfa76d0a7e2af056369733ed58150e479ec0c7
Showing 1 changed file with 1 addition and 2 deletions.
@@ -88,7 +88,6 @@ static int rr_status(struct path_selector *ps, struct dm_path *path,
status_type_t type, char *result, unsigned int maxlen)
{
struct path_info *pi;
int sz = 0;

if (!path)
DMEMIT("0 ");
@@ -107,7 +106,7 @@ static int rr_status(struct path_selector *ps, struct dm_path *path,
}
}

return sz;
return 0;
}

/*

0 comments on commit dbcfa76

Please sign in to comment.