summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2025-05-15 22:13:29 +0200
committerMark Brown <broonie@kernel.org>2025-05-23 16:51:22 +0100
commit72b17676d3683040a0add8988ec051a2a5adafd7 (patch)
tree4d4603c9eefa037cfce046a1b95f488314b75483 /scripts/lib/kdoc/kdoc_output.py
parente7f3d11567c2c79c4342791ba91c500b434ce147 (diff)
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 <j4g8y7@gmail.com> Link: https://patch.msgid.link/20250515-qpic-snand-early-error-v1-1-681c87611213@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions