mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
scsi: sun3_scsi: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
Prepare for removal of the request pointer by using scsi_cmd_to_rq() instead. This patch does not change any functionality. Link: https://lore.kernel.org/r/20210809230355.8186-46-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
bbfa8d7d12
commit
6c5d5422c5
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ static int sun3scsi_dma_xfer_len(struct NCR5380_hostdata *hostdata,
|
|||
{
|
||||
int wanted_len = cmd->SCp.this_residual;
|
||||
|
||||
if (wanted_len < DMA_MIN_SIZE || blk_rq_is_passthrough(cmd->request))
|
||||
if (wanted_len < DMA_MIN_SIZE || blk_rq_is_passthrough(scsi_cmd_to_rq(cmd)))
|
||||
return 0;
|
||||
|
||||
return wanted_len;
|
||||
|
|
Loading…
Add table
Reference in a new issue