]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: remove unused struct semaphore SemHandleUpdateStats
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 28 Mar 2016 04:55:59 +0000 (13:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Mar 2016 19:39:52 +0000 (12:39 -0700)
struct semaphore SemHandleUpdateStats is defined but never used in this
driver, so just remove it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h

index 5785dda8f9d392e35123450b200bc455ebdd81b7..f6aec474ff3ac82cc60219d65ddd52327cbccc9a 100644 (file)
@@ -2262,7 +2262,6 @@ struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *de
        }
 
        priv = wdev_priv(wdev);
-       sema_init(&(priv->SemHandleUpdateStats), 1);
        priv->wdev = wdev;
        wdev->wiphy->max_scan_ssids = MAX_NUM_PROBED_SSID;
 #ifdef CONFIG_PM
index debb139b7687444966b80885e5669c7f1d7b6cbc..94a41b4a21a7d26a47c75c008a466028e8768ba5 100644 (file)
@@ -130,7 +130,6 @@ struct wilc_priv {
        struct wilc_wfi_key *wilc_ptk[MAX_NUM_STA];
        u8 wilc_groupkey;
        /* semaphores */
-       struct semaphore SemHandleUpdateStats;
        struct semaphore hSemScanReq;
        /*  */
        bool gbAutoRateAdjusted;