Commit eb3dc36e authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo
Browse files

iwlwifi: remove redundant assignment to variable bufsz



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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ffe5619f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
	struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
	char *buf;
	char *buf;
	int pos = 0, i, ret;
	int pos = 0, i, ret;
	size_t bufsz = sizeof(buf);
	size_t bufsz;


	bufsz = sizeof(char) * 121 * trans->num_rx_queues;
	bufsz = sizeof(char) * 121 * trans->num_rx_queues;