diff options
author | Sudip Mukherjee <sudip@vectorindia.org> | 2016-02-02 10:14:40 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-02-25 19:17:59 +0300 |
commit | 4fb37186f3b2b1f5d1a8f3e6b26b719bf2df6ee3 (patch) | |
tree | e372ab381f7c49476b5cb16b220869f97107466e /drivers/net/wireless/ath/ath10k/debug.c | |
parent | 5699a6f238ebfc8a6be3963a30d86d6f1e8aaaf9 (diff) | |
download | linux-4fb37186f3b2b1f5d1a8f3e6b26b719bf2df6ee3.tar.xz |
ath10k: remove impossible code
len has been initialized with a value of 0 and buf_len with 4096. There
is no way that this condition (len > buf_len) can be true now.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/debug.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 8d4148a96af8..3dd75a2daf08 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -2182,9 +2182,6 @@ static ssize_t ath10k_debug_fw_checksums_read(struct file *file, mutex_lock(&ar->conf_mutex); - if (len > buf_len) - len = buf_len; - len += scnprintf(buf + len, buf_len - len, "firmware-N.bin\t\t%08x\n", crc32_le(0, ar->firmware->data, ar->firmware->size)); |