scsi: ibmvscsis: Fixed unused variable
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Fri, 16 Sep 2016 14:25:56 +0000 (09:25 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Sep 2016 15:51:59 +0000 (11:51 -0400)
[mkp: applied by hand]

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c

index 38b086ee7d7e3099ad667a6ecc2ec57d7b625a21..642b739ad0da33c63bb7667f65cbe3f21db87e2a 100644 (file)
@@ -3186,9 +3186,6 @@ static int ibmvscsis_rdma(struct ibmvscsis_cmd *cmd, struct scatterlist *sg,
                                         vscsi->dds.window[LOCAL].liobn,
                                         server_ioba);
                } else {
-                       /* write to client */
-                       struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
-
                        /* The h_copy_rdma will cause phyp, running in another
                         * partition, to read memory, so we need to make sure
                         * the data has been written out, hence these syncs.