rtw88: remove redundant assignment to pointer debugfs_topdir
authorColin Ian King <colin.king@canonical.com>
Thu, 22 Aug 2019 11:37:28 +0000 (12:37 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:36:08 +0000 (16:36 +0300)
Pointer debugfs_topdir is initialized to a value that is never read
and it is re-assigned later. The initialization is redundant and can
be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/debug.c

index 383b04c167034a2ba820576b5f9843be10e1fbba..5d235968d4758f977d6a182cbb656e95eb5467cf 100644 (file)
@@ -672,7 +672,7 @@ static struct rtw_debugfs_priv rtw_debug_priv_rsvd_page = {
 
 void rtw_debugfs_init(struct rtw_dev *rtwdev)
 {
-       struct dentry *debugfs_topdir = rtwdev->debugfs;
+       struct dentry *debugfs_topdir;
 
        debugfs_topdir = debugfs_create_dir("rtw88",
                                            rtwdev->hw->wiphy->debugfsdir);