iwlwifi: remove redundant assignment to variable bufsz
authorColin Ian King <colin.king@canonical.com>
Fri, 15 Nov 2019 07:27:59 +0000 (09:27 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Nov 2019 07:34:28 +0000 (09:34 +0200)
The variable bufsz is being initialized with a value that is never
read and it is being updated later with a new value. 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: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 6aa89d9..9e8c47c 100644 (file)
@@ -2582,7 +2582,7 @@ static ssize_t iwl_dbgfs_rx_queue_read(struct file *file,
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        char *buf;
        int pos = 0, i, ret;
-       size_t bufsz = sizeof(buf);
+       size_t bufsz;
 
        bufsz = sizeof(char) * 121 * trans->num_rx_queues;