diff options
| author | Gabor Juhos <[email protected]> | 2025-05-15 20:13:29 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-05-23 15:51:22 +0000 |
| commit | 72b17676d3683040a0add8988ec051a2a5adafd7 (patch) | |
| tree | 4d4603c9eefa037cfce046a1b95f488314b75483 /drivers/fpga/tests | |
| parent | spi: loopback-test: fix up const pointer issue in rx_ranges_cmp() (diff) | |
| download | kernel-72b17676d3683040a0add8988ec051a2a5adafd7.tar.gz kernel-72b17676d3683040a0add8988ec051a2a5adafd7.zip | |
spi: spi-qpic-snand: return early on error from qcom_spi_io_op()
When submitting of the descriptors fails, it is quite likely that
the register read buffer contains no valid data. Even if the data
is valid the function returns with an error code anyway.
Change the code to return early if qcom_submit_descs() fails to
avoid superfluously copying possibly invalid data.
Also change the return statement at the end of the function to use
zero value to indicate success obviusly.
Signed-off-by: Gabor Juhos <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions
