staging: ks7010: remove unused spin_lock
authorTobin C. Harding <me@tobin.cc>
Tue, 11 Apr 2017 23:56:50 +0000 (09:56 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Apr 2017 08:22:03 +0000 (10:22 +0200)
Driver SDIO private data structure description includes a spin_lock
that is never used. This data structure only contains a pointer to the
sdio_func and a pointer to the main device private data. A spin_lock
is not required here.

Remove unused spin_lock.

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 5f14fd00f87f185c2db585ef9c1408455469cfe3..59451f8881aac323f764b28fc66aa7a027467ab0 100644 (file)
@@ -892,7 +892,6 @@ static int ks7010_sdio_probe(struct sdio_func *func,
                return -ENOMEM;
 
        card->func = func;
-       spin_lock_init(&card->lock);
 
        /*** Initialize  SDIO ***/
        sdio_claim_host(func);
index d1d16faf0fc9a850dd6c255131cca7d5ae7178c3..c01a0207f2c147731a6cd0958d749aba00a41316 100644 (file)
@@ -98,7 +98,6 @@ struct hw_info_t {
 struct ks_sdio_card {
        struct sdio_func *func;
        struct ks_wlan_private *priv;
-       spinlock_t lock;
 };
 
 /* Tx Device struct */