Commit 0ed8570e authored by Jiri Slaby's avatar Jiri Slaby Committed by James Bottomley

[SCSI] cxgbi3: remove unnecessary NULL test

Stanse found that c3cn is poked many times around in
cxgb3i_conn_pdu_ready, there is no need to check if it is NULL.

Remove the test.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Acked-by: default avatarKaren Xie <kxie@chelsio.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 3dbf6c00
...@@ -461,10 +461,8 @@ void cxgb3i_conn_pdu_ready(struct s3_conn *c3cn) ...@@ -461,10 +461,8 @@ void cxgb3i_conn_pdu_ready(struct s3_conn *c3cn)
skb = skb_peek(&c3cn->receive_queue); skb = skb_peek(&c3cn->receive_queue);
} }
read_unlock(&c3cn->callback_lock); read_unlock(&c3cn->callback_lock);
if (c3cn) { c3cn->copied_seq += read;
c3cn->copied_seq += read; cxgb3i_c3cn_rx_credits(c3cn, read);
cxgb3i_c3cn_rx_credits(c3cn, read);
}
conn->rxdata_octets += read; conn->rxdata_octets += read;
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment