[SCSI] fcoe: remove unused ptype field in fcoe_rcv_info
authorYi Zou <yi.zou@intel.com>
Wed, 27 Jul 2011 22:10:23 +0000 (15:10 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 28 Jul 2011 08:08:55 +0000 (12:08 +0400)
There is no need to cache the ptype in fcoe_rcv_info struct as it is never
used anywhere.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/fcoe/fcoe.c
include/scsi/fc_frame.h

index 833e9122e0189e2f8b7ebe1cf2c30ecf238d1d7c..7cb2cd48b17b253954c0c4801b22d7e980a5f644 100644 (file)
@@ -418,7 +418,6 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev,
 
        fr = fcoe_dev_from_skb(skb);
        fr->fr_dev = lport;
-       fr->ptype = ptype;
 
        bg = &bnx2fc_global;
        spin_lock_bh(&bg->fcoe_rx_list.lock);
index 204fa8d4b4ab6833ade46d4494628f8bfdbf4aa6..f7547fb000c03eb4453ba61ddebd99b555842175 100644 (file)
@@ -1350,7 +1350,6 @@ int fcoe_rcv(struct sk_buff *skb, struct net_device *netdev,
 
        fr = fcoe_dev_from_skb(skb);
        fr->fr_dev = lport;
-       fr->ptype = ptype;
 
        /*
         * In case the incoming frame's exchange is originated from
index 4ad02041b667f6291c456a1361e50ab31bfe2b58..8225d8063ec48ab6a579d7a74c2f29031e157b20 100644 (file)
@@ -78,7 +78,6 @@ struct fc_frame {
 };
 
 struct fcoe_rcv_info {
-       struct packet_type  *ptype;
        struct fc_lport *fr_dev;        /* transport layer private pointer */
        struct fc_seq   *fr_seq;        /* for use with exchange manager */
        struct fc_fcp_pkt *fr_fsp;      /* for the corresponding fcp I/O */