Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jiri Slaby and committed by
James Bottomley
0ed8570e 3dbf6c00

+2 -4
+2 -4
drivers/scsi/cxgb3i/cxgb3i_pdu.c
··· 461 461 skb = skb_peek(&c3cn->receive_queue); 462 462 } 463 463 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); 468 466 conn->rxdata_octets += read; 469 467 470 468 if (err) {