From fa125ae482085650d5740af355bdcb5532865295 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 12 Apr 2017 09:56:47 +1000 Subject: [PATCH] staging: ks7010: remove unused completion Driver SDIO code initializes a completion that is never used. It can be safely removed. Remove unused completion. Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ks7010/ks7010_sdio.c | 1 - drivers/staging/ks7010/ks7010_sdio.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 9afa06b9ae30..c7e01801764f 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -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) diff --git a/drivers/staging/ks7010/ks7010_sdio.h b/drivers/staging/ks7010/ks7010_sdio.h index a1c7551cc692..3c4047fd1f67 100644 --- a/drivers/staging/ks7010/ks7010_sdio.h +++ b/drivers/staging/ks7010/ks7010_sdio.h @@ -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; -- 2.30.2