Skip to content

Commit 71c0477

Browse files
committed
tree: nvme_configure_ctrl(): Set errno to zero on success
1 parent 057c801 commit 71c0477

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nvme/tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ static int nvme_configure_ctrl(nvme_root_t r, nvme_ctrl_t c, const char *path,
11431143
c->cntrltype = nvme_get_ctrl_attr(c, "cntrltype");
11441144
c->dctype = nvme_get_ctrl_attr(c, "dctype");
11451145

1146+
errno = 0; /* cleanup after nvme_get_ctrl_attr() */
11461147
return 0;
11471148
}
11481149

0 commit comments

Comments
 (0)