Skip to content

Commit

Permalink
mods: ucmd: dm_mpath: initialize return variable
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Jan 29, 2025
1 parent df07bce commit 3ddeb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ucmd/block/dm_mpath/dm_mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int _is_parent_multipathed(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_
const char *valid_str;
int mpath_valid = MPATH_IS_ERROR;
char *p;
int r;
int r = 0;

parent = sid_ucmd_dev_stack_va_get(mod_res, ucmd_ctx, .method = SID_DEV_SEARCH_IMM_ANC, .ret_code = &r);
if (r < 0 || !parent)
Expand Down

0 comments on commit 3ddeb1c

Please sign in to comment.