diff options
| author | Bart Van Assche <[email protected]> | 2025-08-15 15:58:25 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-08-19 02:15:19 +0000 |
| commit | 9ee35fd43f94bf19dbd27cffc213a31314b623d2 (patch) | |
| tree | e50666d49acb4286e19ad0e3182b335c724b1c15 /fs/btrfs/compression.c | |
| parent | scsi: ufs: core: Remove WARN_ON_ONCE() call from ufshcd_uic_cmd_compl() (diff) | |
| download | kernel-9ee35fd43f94bf19dbd27cffc213a31314b623d2.tar.gz kernel-9ee35fd43f94bf19dbd27cffc213a31314b623d2.zip | |
scsi: ufs: core: Fix the return value documentation
ufshcd_wait_for_dev_cmd() and all its callers can return an OCS error.
OCS errors are represented by positive integers. Remove the WARN_ONCE()
statements that complain about positive error codes and update the
documentation.
Keep the behavior of ufshcd_wait_for_dev_cmd() because this return value
may end be passed as the second argument of bsg_job_done() and
bsg_job_done() handles positive and negative error codes differently.
Cc: Peter Wang <[email protected]>
Fixes: cc59f3b68542 ("scsi: ufs: core: Improve return value documentation")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Peter Wang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
