ata: libata-eh: Clarify ata_eh_qc_retry() behavior at call site
authorNiklas Cassel <niklas.cassel@wdc.com>
Fri, 19 May 2023 10:40:02 +0000 (12:40 +0200)
committerDamien Le Moal <dlemoal@kernel.org>
Thu, 1 Jun 2023 00:13:22 +0000 (09:13 +0900)
commite4c26a1b74b559f86905de6443e592f248473fff
tree82b5a6f58538320b67fe0c1a1cf87416d11b74b9
parenta5ae12c87df6b77d4a676c5fbcd23b93f155321e
ata: libata-eh: Clarify ata_eh_qc_retry() behavior at call site

While the function documentation for ata_eh_qc_retry() is clear,
from simply reading the single function that calls ata_eh_qc_retry(),
it is not clear that ata_eh_qc_retry() might not retry the command.

Add a comment in the single function that calls ata_eh_qc_retry() to
clarify the behavior.

[Damien] Added curly braces to "if () else" with multi-line comment.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/libata-eh.c