Skip to content

Commit 27e5fbf

Browse files
Kartik_BurmeeAtin Mukherjee
Kartik_Burmee
authored and
Atin Mukherjee
committed
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 <[email protected]>
1 parent e3c938e commit 27e5fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xlators/mgmt/glusterd/src/glusterd-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ glusterd_validate_and_create_brickpath (glusterd_brickinfo_t *brickinfo,
15521552

15531553
out:
15541554
if (ret && is_created) {
1555-
recursive_rmdir (brickinfo->path);
1555+
(void)recursive_rmdir (brickinfo->path);
15561556
}
15571557
if (ret && !*op_errstr && msg[0] != '\0')
15581558
*op_errstr = gf_strdup (msg);

0 commit comments

Comments
 (0)