Commit 7223d809 authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen

scsi: fcoe: remove set but not used variable 'port'

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

drivers/scsi/fcoe/fcoe.c: In function 'fcoe_recv_frame':
drivers/scsi/fcoe/fcoe.c:1672:20: warning:
 variable 'port' set but not used [-Wunused-but-set-variable]

drivers/scsi/fcoe/fcoe.c: In function 'fcoe_device_notification':
drivers/scsi/fcoe/fcoe.c:1861:20: warning:
 variable 'port' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJohannes Thumshirn <jth@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e57b2945
...@@ -1669,7 +1669,6 @@ static void fcoe_recv_frame(struct sk_buff *skb) ...@@ -1669,7 +1669,6 @@ static void fcoe_recv_frame(struct sk_buff *skb)
struct fc_stats *stats; struct fc_stats *stats;
struct fcoe_crc_eof crc_eof; struct fcoe_crc_eof crc_eof;
struct fc_frame *fp; struct fc_frame *fp;
struct fcoe_port *port;
struct fcoe_hdr *hp; struct fcoe_hdr *hp;
fr = fcoe_dev_from_skb(skb); fr = fcoe_dev_from_skb(skb);
...@@ -1687,7 +1686,6 @@ static void fcoe_recv_frame(struct sk_buff *skb) ...@@ -1687,7 +1686,6 @@ static void fcoe_recv_frame(struct sk_buff *skb)
skb_end_pointer(skb), skb->csum, skb_end_pointer(skb), skb->csum,
skb->dev ? skb->dev->name : "<NULL>"); skb->dev ? skb->dev->name : "<NULL>");
port = lport_priv(lport);
skb_linearize(skb); /* check for skb_is_nonlinear is within skb_linearize */ skb_linearize(skb); /* check for skb_is_nonlinear is within skb_linearize */
/* /*
...@@ -1858,7 +1856,6 @@ static int fcoe_device_notification(struct notifier_block *notifier, ...@@ -1858,7 +1856,6 @@ static int fcoe_device_notification(struct notifier_block *notifier,
struct net_device *netdev = netdev_notifier_info_to_dev(ptr); struct net_device *netdev = netdev_notifier_info_to_dev(ptr);
struct fcoe_ctlr *ctlr; struct fcoe_ctlr *ctlr;
struct fcoe_interface *fcoe; struct fcoe_interface *fcoe;
struct fcoe_port *port;
struct fc_stats *stats; struct fc_stats *stats;
u32 link_possible = 1; u32 link_possible = 1;
u32 mfs; u32 mfs;
...@@ -1896,7 +1893,6 @@ static int fcoe_device_notification(struct notifier_block *notifier, ...@@ -1896,7 +1893,6 @@ static int fcoe_device_notification(struct notifier_block *notifier,
break; break;
case NETDEV_UNREGISTER: case NETDEV_UNREGISTER:
list_del(&fcoe->list); list_del(&fcoe->list);
port = lport_priv(ctlr->lp);
fcoe_vport_remove(lport); fcoe_vport_remove(lport);
mutex_lock(&fcoe_config_mutex); mutex_lock(&fcoe_config_mutex);
fcoe_if_destroy(lport); fcoe_if_destroy(lport);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment