power: fg-memif: Fix incorrect usage of error return value
'Commit ac85d987 ("power: fg-memif: Modify FG SRAM access configuration over DMA")' made changes to fix the order of DMA request and release but it bought in an incorrect usage of error return value. While doing SRAM access over DMA, if there is an error, DMA should be released. "ret" is used to hold the error return value of fg_direct_mem_release() so that the previous error return value if any can be retained in "rc" and returned back. Fix it. Change-Id: Id3e9f1ec4bd3ae00a76399923e9e8d3f225f5bf4 Signed-off-by:Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment