Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e67cc079 authored by Ajay Agarwal's avatar Ajay Agarwal Committed by Gerrit - the friendly Code Review server
Browse files

usb: diag_bridge: Modify kref_put handling in case of transfers



Make the code more readable by doing kref_put in the completion
callback if the URB is submitted successfully. Else do so from
the error handling in read/write functions.

Change-Id: I50645cac757293dd0b1df9afb356281b2922401b
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 08cce56f
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