projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5699a6f
)
ath10k: remove impossible code
author
Sudip Mukherjee
<sudip@vectorindia.org>
Tue, 2 Feb 2016 07:14:40 +0000
(12:44 +0530)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Thu, 25 Feb 2016 16:17:59 +0000
(18:17 +0200)
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>
drivers/net/wireless/ath/ath10k/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath10k/debug.c
b/drivers/net/wireless/ath/ath10k/debug.c
index 8d4148a96af8294a6ccfdb25ef245666d201d356..3dd75a2daf081f9c08b7c6c57a4063961339a164 100644
(file)
--- 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));