qla2x00t-32gbit: Fix a compiler warning triggered by kernel versions before v4.10

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-09 15:11:05 +00:00
parent 5a99fa9a8c
commit 289ae036e5
+2 -1
View File
@@ -2170,10 +2170,11 @@ static void qla24xx_nvme_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
}
if (state_flags & SF_NVME_ERSP) {
struct nvme_fc_ersp_iu *rsp_iu = fd->rspaddr;
u32 tgt_xfer_len;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
struct nvme_fc_ersp_iu *rsp_iu = fd->rspaddr;
/*
* xfrd_len was introduced by commit b1ad1475b447
* ("nvme-fabrics: Add FC transport FC-NVME definitions")