]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/scsi/cxgb3i/cxgb3i_pdu.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[net-next-2.6.git] / drivers / scsi / cxgb3i / cxgb3i_pdu.c
index 1fe3b0f1f3c94353fbda92df4769bfb82c28a0bc..dc5e3e77a351c5ec421f36a0be9f681427acbb3f 100644 (file)
@@ -12,6 +12,7 @@
  * Written by: Karen Xie (kxie@chelsio.com)
  */
 
+#include <linux/slab.h>
 #include <linux/skbuff.h>
 #include <linux/crypto.h>
 #include <scsi/scsi_cmnd.h>
@@ -461,10 +462,8 @@ void cxgb3i_conn_pdu_ready(struct s3_conn *c3cn)
                skb = skb_peek(&c3cn->receive_queue);
        }
        read_unlock(&c3cn->callback_lock);
-       if (c3cn) {
-               c3cn->copied_seq += read;
-               cxgb3i_c3cn_rx_credits(c3cn, read);
-       }
+       c3cn->copied_seq += read;
+       cxgb3i_c3cn_rx_credits(c3cn, read);
        conn->rxdata_octets += read;
 
        if (err) {