Skip to content
Snippets Groups Projects
Commit a82971b0 authored by Keith Packard's avatar Keith Packard
Browse files

os: un-duplicate code to close client on write failure


There are three copies of the same short sequence of operations to
close down a client when a write error occurs. Create a new function,
AbortClient, which performs these operations and then call it from the
three places.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Reviewed-and-Tested-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
parent 8475e636
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment