firewire: net: remove unused variable in fwnet_receive_broadcast()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Dec 2012 13:11:17 +0000 (08:11 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 3 Dec 2012 13:45:54 +0000 (14:45 +0100)
The variable card is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/net.c

index 638e1f71284a18f4db656a9bc12d05e22680de88..e7a711f53a6f7cd8f0b1316d324034b1ca2acc1c 100644 (file)
@@ -828,7 +828,6 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,
 {
        struct fwnet_device *dev;
        struct fw_iso_packet packet;
-       struct fw_card *card;
        __be16 *hdr_ptr;
        __be32 *buf_ptr;
        int retval;
@@ -840,7 +839,6 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,
        unsigned long flags;
 
        dev = data;
-       card = dev->card;
        hdr_ptr = header;
        length = be16_to_cpup(hdr_ptr);