Skip to content

Commit 0ed8570

Browse files
Jiri SlabyJames Bottomley
authored andcommitted
[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: Jiri Slaby <jirislaby@gmail.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Acked-by: Karen Xie <kxie@chelsio.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent 3dbf6c0 commit 0ed8570

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/scsi/cxgb3i/cxgb3i_pdu.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,8 @@ void cxgb3i_conn_pdu_ready(struct s3_conn *c3cn)
461461
skb = skb_peek(&c3cn->receive_queue);
462462
}
463463
read_unlock(&c3cn->callback_lock);
464-
if (c3cn) {
465-
c3cn->copied_seq += read;
466-
cxgb3i_c3cn_rx_credits(c3cn, read);
467-
}
464+
c3cn->copied_seq += read;
465+
cxgb3i_c3cn_rx_credits(c3cn, read);
468466
conn->rxdata_octets += read;
469467

470468
if (err) {

0 commit comments

Comments
 (0)