aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/debug.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudip@vectorindia.org>2016-02-02 12:44:40 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2016-02-25 18:17:59 +0200
commit4fb37186f3b2b1f5d1a8f3e6b26b719bf2df6ee3 (patch)
treee372ab381f7c49476b5cb16b220869f97107466e /drivers/net/wireless/ath/ath10k/debug.c
parentath10k: populate qca4019 fw specific wmi init params (diff)
downloadlinux-dev-4fb37186f3b2b1f5d1a8f3e6b26b719bf2df6ee3.tar.xz
linux-dev-4fb37186f3b2b1f5d1a8f3e6b26b719bf2df6ee3.zip
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.c3
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));