Re: [PATCH] scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case

From: Martin K. Petersen
Date: Mon Apr 24 2017 - 18:18:16 EST



Alexey,

> As Christoph Hellwig noted, SCSI commands that transfer data
> always have a SG entry. The patch removes dead code in
> mvumi_make_sgl(), mvumi_complete_cmd() and mvumi_timed_out()
> that handle zero scsi_sg_count(scmd) case.
>
> Also the patch adds pci_unmap_sg() on failure path in mvumi_make_sgl().

Applied to 4.12/scsi-queue, thanks!

--
Martin K. Petersen Oracle Linux Engineering