[PATCH 3/4] nvmet-fc: Don't use the count returned by the dma_map_sg call

Bart Van Assche Bart.VanAssche at wdc.com
Thu Mar 29 09:14:37 PDT 2018


On Thu, 2018-03-29 at 10:07 -0600, Logan Gunthorpe wrote:
> +	ret = fc_dma_map_sg(fod->tgtport->dev, sg, nent,
> +			    ((fod->io_dir == NVMET_FCP_WRITE) ?
> +				    DMA_FROM_DEVICE : DMA_TO_DEVICE));
> +			    /* note: write from initiator perspective */

If you have to repost this patch please remove the four superfluous parentheses.

Thanks,

Bart.





More information about the Linux-nvme mailing list