staging: ks7010: remove unused completion
authorTobin C. Harding <me@tobin.cc>
Tue, 11 Apr 2017 23:56:47 +0000 (09:56 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Apr 2017 08:22:03 +0000 (10:22 +0200)
Driver SDIO code initializes a completion that is never used. It can
be safely removed.

Remove unused completion.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c
drivers/staging/ks7010/ks7010_sdio.h

index 9afa06b9ae30a4d3873556f2fcd0a9dec97c2966..c7e01801764ff38f07a74a6146695c2c34c80077 100644 (file)
@@ -952,7 +952,6 @@ static int ks7010_sdio_probe(struct sdio_func *func,
 
        /* private memory initialize */
        priv->ks_wlan_hw.sdio_card = card;
-       init_completion(&priv->ks_wlan_hw.ks7010_sdio_wait);
        priv->ks_wlan_hw.read_buf = NULL;
        priv->ks_wlan_hw.read_buf = kmalloc(RX_DATA_SIZE, GFP_KERNEL);
        if (!priv->ks_wlan_hw.read_buf)
index a1c7551cc692f8e3e087710c455495fbd84063c7..3c4047fd1f67ae33c25bc6c5f7de916b345b6161 100644 (file)
@@ -90,7 +90,6 @@
  */
 struct hw_info_t {
        struct ks_sdio_card *sdio_card;
-       struct completion ks7010_sdio_wait;
        struct workqueue_struct *ks7010sdio_wq;
        struct delayed_work rw_wq;
        unsigned char *read_buf;