[SCSI] fcoe: remove an unused variable in fcoe_recv_frame()
authorJoe Eykholt <jeykholt@cisco.com>
Sat, 13 Mar 2010 00:08:18 +0000 (16:08 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:38 +0000 (09:23 -0500)
Remove an unused variable, mac, in fcoe_recv_frame().

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe.c

index 17bf3ca82affa50172c944871870a41e1cb6203b..fd0b2b3b27b8074d796cdc30e62d0866632a48a4 100644 (file)
@@ -1565,7 +1565,6 @@ static void fcoe_recv_frame(struct sk_buff *skb)
        struct fc_frame_header *fh;
        struct fcoe_crc_eof crc_eof;
        struct fc_frame *fp;
-       u8 *mac = NULL;
        struct fcoe_port *port;
        struct fcoe_hdr *hp;
 
@@ -1585,13 +1584,9 @@ static void fcoe_recv_frame(struct sk_buff *skb)
                        skb_end_pointer(skb), skb->csum,
                        skb->dev ? skb->dev->name : "<NULL>");
 
-       /*
-        * Save source MAC address before discarding header.
-        */
        port = lport_priv(lport);
        if (skb_is_nonlinear(skb))
                skb_linearize(skb);     /* not ideal */
-       mac = eth_hdr(skb)->h_source;
 
        /*
         * Frame length checks and setting up the header pointers