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

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

authored by

Yi Zou and committed by
James Bottomley
302ff541 9b35baae

-3
-1
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
··· 418 418 419 419 fr = fcoe_dev_from_skb(skb); 420 420 fr->fr_dev = lport; 421 - fr->ptype = ptype; 422 421 423 422 bg = &bnx2fc_global; 424 423 spin_lock_bh(&bg->fcoe_rx_list.lock);
-1
drivers/scsi/fcoe/fcoe.c
··· 1350 1350 1351 1351 fr = fcoe_dev_from_skb(skb); 1352 1352 fr->fr_dev = lport; 1353 - fr->ptype = ptype; 1354 1353 1355 1354 /* 1356 1355 * In case the incoming frame's exchange is originated from
-1
include/scsi/fc_frame.h
··· 78 78 }; 79 79 80 80 struct fcoe_rcv_info { 81 - struct packet_type *ptype; 82 81 struct fc_lport *fr_dev; /* transport layer private pointer */ 83 82 struct fc_seq *fr_seq; /* for use with exchange manager */ 84 83 struct fc_fcp_pkt *fr_fsp; /* for the corresponding fcp I/O */