scsi_transport_iscsi: Remove set-but-not-used variables
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 30 Mar 2016 18:27:27 +0000 (11:27 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 11 Apr 2016 20:57:09 +0000 (16:57 -0400)
Avoid that building with W=1 causes gcc to report warnings about
set-but-not-used variables.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c

index 7a759a9257ea7f2891ce9c70703fe096db29d4f4..5a7be7ee9f5ddd355cf1938ee9c1bccd733efe5a 100644 (file)
@@ -2070,13 +2070,10 @@ EXPORT_SYMBOL_GPL(iscsi_alloc_session);
 
 int iscsi_add_session(struct iscsi_cls_session *session, unsigned int target_id)
 {
-       struct Scsi_Host *shost = iscsi_session_to_shost(session);
-       struct iscsi_cls_host *ihost;
        unsigned long flags;
        int id = 0;
        int err;
 
-       ihost = shost->shost_data;
        session->sid = atomic_add_return(1, &iscsi_session_nr);
 
        if (target_id == ISCSI_MAX_TARGET) {