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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ffe5619fd8
commit
eb3dc36eec
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue