This was detected by building the nvmet-fc driver with W=1.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: James Smart <james.smart@broadcom.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
                        struct nvmefc_tgt_fcp_req *tgt_fcpreq)
 {
        struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);
-       int active;
 
        /*
         * mark aborted only in case there were 2 threads in transport
         * after the abort request
         */
        spin_lock(&tfcp_req->reqlock);
-       active = tfcp_req->active;
        tfcp_req->aborted = true;
        spin_unlock(&tfcp_req->reqlock);