]> git.karo-electronics.de Git - linux-beck.git/commitdiff
brcmfmac: remove unused variable data_len from brcmf_sdio_bus_txdata()
authorArend van Spriel <arend@broadcom.com>
Tue, 25 Feb 2014 19:30:28 +0000 (20:30 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:33:19 +0000 (14:33 -0500)
The local variable data_len is assigned but never used so get rid
of it.

Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c

index fa4ec69871c78ddf8d16d5e5b78035d000b553a5..ce1ee1e2f2291229c3a373fe1d67ada196166eed 100644 (file)
@@ -2686,15 +2686,13 @@ static struct pktq *brcmf_sdio_bus_gettxq(struct device *dev)
 static int brcmf_sdio_bus_txdata(struct device *dev, struct sk_buff *pkt)
 {
        int ret = -EBADE;
-       uint datalen, prec;
+       uint prec;
        struct brcmf_bus *bus_if = dev_get_drvdata(dev);
        struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;
        struct brcmf_sdio *bus = sdiodev->bus;
        ulong flags;
 
-       brcmf_dbg(TRACE, "Enter\n");
-
-       datalen = pkt->len;
+       brcmf_dbg(TRACE, "Enter: pkt: data %p len %d\n", pkt->data, pkt->len);
 
        /* Add space for the header */
        skb_push(pkt, bus->tx_hdrlen);