From: Tobin C. Harding Date: Tue, 11 Apr 2017 23:56:47 +0000 (+1000) Subject: staging: ks7010: remove unused completion X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa125ae482085650d5740af355bdcb5532865295;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;