/* fc_fcp_ddp_done() - Calls a LLD's ddp_done routine to release any DDP related resources for a fcp_pkt @fsp: The FCP packet that DDP had been used on  */
static void fc_fcp_ddp_done(struct fc_fcp_pkt *fsp)
/* fc_fcp_ddp_done() - Calls a LLD's ddp_done routine to release any DDP related resources for a fcp_pkt @fsp: The FCP packet that DDP had been used on  */
static void fc_fcp_ddp_done(struct fc_fcp_pkt *fsp)
{
	struct fc_lport *lport;
	if (!fsp)
		return;
	if (fsp->xfer_ddp == FC_XID_UNKNOWN)
		return;
	lport = fsp->lp;
	if (lport->tt.ddp_done) {
		fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp);
		fsp->xfer_ddp = FC_XID_UNKNOWN;
	}
}