Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 dbcfa76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/dm-ps-round-robin.c
Expand Up @@ -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 ");
Expand All @@ -107,7 +106,7 @@ static int rr_status(struct path_selector *ps, struct dm_path *path,
}
}

return sz;
return 0;
}

/*
Expand Down

0 comments on commit dbcfa76

Please sign in to comment.