aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2011-07-27 18:10:23 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-07-28 04:08:55 -0400
commit302ff541d981e58cd455fdbd6a90bd74d0f2109b (patch)
tree87fadaa4972189c6deef5a02eb2719e2b093d268
parent9b35baae3a62c33a73a6fd8bf4d1b6c4e3b5b5f3 (diff)
[SCSI] fcoe: remove unused ptype field in fcoe_rcv_info
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>
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c1
-rw-r--r--drivers/scsi/fcoe/fcoe.c1
-rw-r--r--include/scsi/fc_frame.h1
3 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 833e9122e018..7cb2cd48b17b 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -418,7 +418,6 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev,
418 418
419 fr = fcoe_dev_from_skb(skb); 419 fr = fcoe_dev_from_skb(skb);
420 fr->fr_dev = lport; 420 fr->fr_dev = lport;
421 fr->ptype = ptype;
422 421
423 bg = &bnx2fc_global; 422 bg = &bnx2fc_global;
424 spin_lock_bh(&bg->fcoe_rx_list.lock); 423 spin_lock_bh(&bg->fcoe_rx_list.lock);
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 204fa8d4b4ab..f7547fb000c0 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -1350,7 +1350,6 @@ int fcoe_rcv(struct sk_buff *skb, struct net_device *netdev,
1350 1350
1351 fr = fcoe_dev_from_skb(skb); 1351 fr = fcoe_dev_from_skb(skb);
1352 fr->fr_dev = lport; 1352 fr->fr_dev = lport;
1353 fr->ptype = ptype;
1354 1353
1355 /* 1354 /*
1356 * In case the incoming frame's exchange is originated from 1355 * In case the incoming frame's exchange is originated from
diff --git a/include/scsi/fc_frame.h b/include/scsi/fc_frame.h
index 4ad02041b667..8225d8063ec4 100644
--- a/include/scsi/fc_frame.h
+++ b/include/scsi/fc_frame.h
@@ -78,7 +78,6 @@ struct fc_frame {
78}; 78};
79 79
80struct fcoe_rcv_info { 80struct fcoe_rcv_info {
81 struct packet_type *ptype;
82 struct fc_lport *fr_dev; /* transport layer private pointer */ 81 struct fc_lport *fr_dev; /* transport layer private pointer */
83 struct fc_seq *fr_seq; /* for use with exchange manager */ 82 struct fc_seq *fr_seq; /* for use with exchange manager */
84 struct fc_fcp_pkt *fr_fsp; /* for the corresponding fcp I/O */ 83 struct fc_fcp_pkt *fr_fsp; /* for the corresponding fcp I/O */