]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: ks7010: Delete a variable in write_to_device()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 17 Jul 2016 17:26:15 +0000 (19:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 14:34:18 +0000 (16:34 +0200)
The local variable "rc" was assigned a zero at one place.
But it was not read within this function. Thus delete it.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index 3622fba8fd36fc9c282ce2202755cd2fb1f7b8eb..a0facfc54e4b7622032e5efe53d06100ad32ba8e 100644 (file)
@@ -297,11 +297,10 @@ static int enqueue_txdev(struct ks_wlan_private *priv, unsigned char *p,
 static int write_to_device(struct ks_wlan_private *priv, unsigned char *buffer,
                           unsigned long size)
 {
-       int rc, retval;
+       int retval;
        unsigned char rw_data;
        struct hostif_hdr *hdr;
        hdr = (struct hostif_hdr *)buffer;
-       rc = 0;
 
        DPRINTK(4, "size=%d\n", hdr->size);
        if (hdr->event < HIF_DATA_REQ || HIF_REQ_MAX < hdr->event) {