Skip to content

fabrics: Fix build_options() return values#449

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
tbzatek:errno-fixes-2
Aug 1, 2022
Merged

fabrics: Fix build_options() return values#449
igaw merged 1 commit intolinux-nvme:masterfrom
tbzatek:errno-fixes-2

Conversation

@tbzatek
Copy link
Copy Markdown
Contributor

@tbzatek tbzatek commented Jul 28, 2022

A small issue spotted by reading the code.

Make the returned error values consistent with the rest of the code.
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Aug 1, 2022

Should we also set the errno value to EINVAL in case the big 'if' fails?

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Aug 1, 2022

Forget it, I see that add_bool_argument() well set the errno if needed.

@igaw igaw merged commit 3627e71 into linux-nvme:master Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants