{
        struct qla_hw_data *ha = vha->hw;
        sts_entry_t *pkt = iocb;
-       srb_t *sp = NULL;
+       srb_t *sp;
        uint16_t index;
 
        index = LSW(pkt->handle);
                        set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
                else
                        set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
-               goto done;
+               return NULL;
        }
        sp = req->outstanding_cmds[index];
        if (!sp) {
                ql_log(ql_log_warn, vha, 0x5032,
                    "Invalid completion handle (%x) -- timed-out.\n", index);
-               return sp;
+               return NULL;
        }
        if (sp->handle != index) {
                ql_log(ql_log_warn, vha, 0x5033,
        }
 
        req->outstanding_cmds[index] = NULL;
-
-done:
        return sp;
 }