diff options
| author | Wenchao Hao <[email protected]> | 2022-01-06 00:13:54 +0000 |
|---|---|---|
| committer | Damien Le Moal <[email protected]> | 2022-01-14 06:17:17 +0000 |
| commit | 84eac327af543f03172085d5ef9f98ea25a51191 (patch) | |
| tree | 820e545b3531a691ea7859e74ea3b2c4d0966751 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | ata: pata_of_platform: Use platform_get_irq_optional() to get the interrupt (diff) | |
| download | kernel-84eac327af543f03172085d5ef9f98ea25a51191.tar.gz kernel-84eac327af543f03172085d5ef9f98ea25a51191.zip | |
ata: libata-scsi: simplify __ata_scsi_queuecmd()
This patch cleans up the code of __ata_scsi_queuecmd(). Since each
branch of the "if" condition check that scmd->cmd_len is not zero, move
this check out of the "if" to simplify the conditions being checked in
the "else" branch.
While at it, avoid the if-else-if-else structure using if-else if
structure and remove the redundant rc local variable.
This patch does not change the function logic.
Signed-off-by: Wenchao Hao <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
