Skip to content

Squash ENODEV in Device::Drop#172

Open
hpccc53 wants to merge 1 commit intoemberian:mainfrom
hpccc53:fix_error_message
Open

Squash ENODEV in Device::Drop#172
hpccc53 wants to merge 1 commit intoemberian:mainfrom
hpccc53:fix_error_message

Conversation

@hpccc53
Copy link
Copy Markdown

@hpccc53 hpccc53 commented Apr 16, 2026

Device::Drop makes ensure to ungrab 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.

@hpccc53 hpccc53 force-pushed the fix_error_message branch 2 times, most recently from 876279e to c939e2d Compare April 16, 2026 07:54
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.

1 participant