mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
qla2x00t-32gbit: Remove dead code
Since sess == NULL before 'goto out_term2' is executed, the code under 'if (sess)' cannot be reached. Hence remove that code. This was detected by Coverity. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6270,9 +6270,6 @@ static void qlt_abort_work(struct qla_tgt *tgt,
|
||||
out_term2:
|
||||
spin_unlock_irqrestore(&ha->tgt.sess_lock, flags2);
|
||||
|
||||
if (sess)
|
||||
ha->tgt.tgt_ops->put_sess(sess);
|
||||
|
||||
out_term:
|
||||
spin_lock_irqsave(&ha->hardware_lock, flags);
|
||||
qlt_24xx_send_abts_resp(ha->base_qpair, &prm->abts,
|
||||
|
||||
Reference in New Issue
Block a user