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

scsi: bnx2fc: Remove set but not used variable 'oxid'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/bnx2fc/bnx2fc_fcoe.c: In function 'bnx2fc_rcv':
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:435:17: warning:
variable 'oxid' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

YueHaibing and committed by
Martin K. Petersen
efcbe998 6f1d8a53

-3
-3
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
··· 436 436 struct fcoe_rcv_info *fr; 437 437 struct fcoe_percpu_s *bg; 438 438 struct sk_buff *tmp_skb; 439 - unsigned short oxid; 440 439 441 440 interface = container_of(ptype, struct bnx2fc_interface, 442 441 fcoe_packet_type); ··· 468 469 469 470 skb_set_transport_header(skb, sizeof(struct fcoe_hdr)); 470 471 fh = (struct fc_frame_header *) skb_transport_header(skb); 471 - 472 - oxid = ntohs(fh->fh_ox_id); 473 472 474 473 fr = fcoe_dev_from_skb(skb); 475 474 fr->fr_dev = lport;