Skip to content

Navigation Menu

Sign in
Sign up

Squash ENODEV in Device::Drop - #172

Open
hpccc53 wants to merge 1 commit into
emberian:main from
hpccc53:fix_error_message
Open

Squash ENODEV in Device::Drop #172
hpccc53 wants to merge 1 commit into
emberian:main from
hpccc53:fix_error_message

Conversation

@hpccc53

@hpccc53 hpccc53 commented Apr 16, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Device::Drop ungrabs the device, and prints a message in case of error. The problem is that ungrabbing a device that has already been disconnected will result in an ENODEV. There is not much point in this error message, because the device must have been ungrabbed if it doesn't exist any more.

This PR avoids printing the error message when the error is ENODEV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /