diff options
author | Kartik_Burmee <kburmee@redhat.com> | 2017-11-13 21:28:51 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-11-14 04:51:51 +0000 |
commit | 27e5fbf6eeeb2402a625a20c966324dea3d6a876 (patch) | |
tree | 4750331c426122218619555a5a13feac07fdfa28 | |
parent | e3c938e01f1f71cda54ad278c20f41caa1340adc (diff) |
glusterd: checked_return coverity fix
issue: Calling "recursive_rmdir" without checking return value
fix: typecasted return value of function 'recursive_rmdir' to void
Change-Id: Ie95c2a2c503bb247afa69823d0043c3af5e036e8
BUG: 789278
Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 86b9c1143c3..ede2a9260a5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1552,7 +1552,7 @@ glusterd_validate_and_create_brickpath (glusterd_brickinfo_t *brickinfo, out: if (ret && is_created) { - recursive_rmdir (brickinfo->path); + (void)recursive_rmdir (brickinfo->path); } if (ret && !*op_errstr && msg[0] != '\0') *op_errstr = gf_strdup (msg); |