/* fc_fcp_cleanup_cmd() - Cancel the active exchange on a fcp_pkt @fsp: The FCP packet whose exchanges should be canceled @error: The reason for the cancellation  */
static void fc_fcp_cleanup_cmd(struct fc_fcp_pkt *fsp, int error)
/* fc_fcp_cleanup_cmd() - Cancel the active exchange on a fcp_pkt @fsp: The FCP packet whose exchanges should be canceled @error: The reason for the cancellation  */
static void fc_fcp_cleanup_cmd(struct fc_fcp_pkt *fsp, int error)
{
	struct fc_lport *lport = fsp->lp;
	if (fsp->seq_ptr) {
		lport->tt.exch_done(fsp->seq_ptr);
		fsp->seq_ptr = NULL;
	}
	fsp->status_code = error;
}