Skip to content

Commit

Permalink
[SCSI] fcoe: remove unused ptype field in fcoe_rcv_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yi Zou authored and James Bottomley committed Jul 28, 2011
1 parent 9b35baa commit 302ff54
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/scsi/bnx2fc/bnx2fc_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/scsi/fc_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 302ff54

Please sign in to comment.