Skip to content
Commit 7a2525fb authored by Keith Packard's avatar Keith Packard Committed by Adam Jackson
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>
(cherry picked from commit a82971b0)
parent b3de3ebc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment